1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 11:55:23 +03:00

systemctl: fix preset-all with missing /etc/systemd/system

If the directory is missing, we can assume that those pesky symlinks are gone too.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-08-11 21:53:32 -04:00
parent 9c5077fed4
commit 32d9493e59

View File

@ -620,7 +620,7 @@ static int remove_marked_symlinks(
fd = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW); fd = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
if (fd < 0) if (fd < 0)
return -errno; return errno == ENOENT ? 0 : -errno;
do { do {
int q, cfd; int q, cfd;