1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00
The systemd System and Service Manager
Go to file
Lennart Poettering db55bbf29b stat-util: fix dir_is_empty() with hidden/backup files
This is a follow-up for f470cb6d13 which in
turn is a follow-up for a068aceafb.

The latter started to honour hidden files when deciding whether a
directory is empty. The former reverted to the old behaviour to fix
issue #23220.

It introduced a bug though: when a directory contains a larger number of
hidden entries the getdents64() buffer will not suffice to read them,
since we just allocate three entries for it (which is definitely enough
if we just ignore the . + .. entries, but not ig we ignore more).

I think it's a bit confusing that dir_is_empty() can return true even if
rmdir() on the dir would return ENOTEMPTY. Hence, let's rework the
function to make it optional whether hidden files are ignored or not.
After all, I looking at the users of this function I am pretty sure in
more cases we want to honour hidden files.
2022-05-04 13:29:14 +02:00
.clusterfuzzlite ci: unpin CFLite 2022-04-26 09:13:57 +00:00
.github build(deps): bump github/super-linter from 4.9.1 to 4.9.2 2022-05-03 05:51:41 +03:00
.lgtm/cpp-queries
.semaphore
catalog
coccinelle
docs fix typo 2022-05-03 01:16:32 +09:00
factory
hwdb.d Adding a description of the keyboard shortcut Fn+F12 for the HP EliteBook 845 G7 device. (#23253) 2022-05-04 05:40:55 +09:00
LICENSES
man man: document that systemd-fstab-generator actually cares about roothash=/usrhash= on the kernel cmdline 2022-05-02 20:49:16 +01:00
mkosi.default.d
modprobe.d
network
po po: update italian translations 2022-04-26 16:41:30 +02:00
presets
rules.d
shell-completion
src stat-util: fix dir_is_empty() with hidden/backup files 2022-05-04 13:29:14 +02:00
sysctl.d
sysusers.d
test tests: make valgrind_wrapper track file descriptors 2022-05-03 20:51:56 +00:00
tmpfiles.d meson: Sort lines in tmpfiles.d/meson.build 2022-05-03 20:46:16 +02:00
tools oss-fuzz: turn off fuzz-introspector 2022-04-22 09:08:47 +09:00
units units: remove spurious empty line 2022-05-04 10:17:05 +02:00
xorg
.clang-format
.ctags
.dir-locals.el
.editorconfig
.gitattributes
.gitignore
.lgtm.yml
.mailmap
.packit.yml
.vimrc
.ycm_extra_conf.py
configure
LICENSE.GPL2
LICENSE.LGPL2.1
Makefile
meson_options.txt compression: add build-time option to select default 2022-04-18 05:43:59 +09:00
meson.build meson: also check c_args to maybe add -Wno-maybe-uninitialized 2022-04-29 20:03:11 +01:00
mkosi.build
mkosi.postinst
NEWS update NEWS for 251-rc2 2022-05-04 10:32:10 +02:00
README
README.md
TODO update TODO 2022-05-02 16:41:52 +02:00

Systemd

System and Service Manager

Count of open issues over time Count of open pull requests over time Semaphore CI 2.0 Build Status
Coverity Scan Status
OSS-Fuzz Status
CIFuzz
CII Best Practices
Language Grade: C/C++
CentOS CI - CentOS 8
CentOS CI - Arch
CentOS CI - Arch (sanitizers)
CentOS CI - Rawhide (SELinux)
Fossies codespell report
Coverage Status
Packaging status

Details

Most documentation is available on systemd's web site.

Assorted, older, general information about systemd can be found in the systemd Wiki.

Information about build requirements is provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the Code Map for information about this repository's layout and content.

Please see the Hacking guide for information on how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.