mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
Michal Schmidt
67575eef76
path: fix watching the root directory
If you have a path unit with: DirectoryNotEmpty=/foo and "/foo" does not exist, creating it later escapes the attention of systemd. When adding watches for parent directories, systemd never adds one for the root directory. It attempts to add a watch for an empty string instead, which fails. If the path is "/", we must not trim the slash.
systemd System and Session Manager DETAILS: http://0pointer.de/blog/projects/systemd.html WEB SITE: http://www.freedesktop.org/wiki/Software/systemd GIT: git://anongit.freedesktop.org/systemd ssh://git.freedesktop.org/git/systemd GITWEB: http://cgit.freedesktop.org/systemd/ MAILING LIST: http://lists.freedesktop.org/mailman/listinfo/systemd-devel http://lists.freedesktop.org/mailman/listinfo/systemd-commits IRC: #systemd on irc.freenode.org BUG REPORTS: https://bugs.freedesktop.org/enter_bug.cgi?product=systemd AUTHOR: Lennart Poettering with major support from Kay Sievers REQUIREMENTS: Linux kernel >= 2.6.30 (with autofs4, devtmpfs, cgroups) libudev >= 163 dbus >= 1.4.0 vala >= 0.10 util-linux > v2.18 (requires fsck -l, agetty -s) gtk+ >= 2.20 libcap PAM >= 1.1.2 (optional)
Description
Languages
C
89.4%
Python
5.8%
Shell
2.1%
Meson
1.3%
HTML
0.9%
Other
0.4%