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);
if (fd < 0)
return -errno;
return errno == ENOENT ? 0 : -errno;
do {
int q, cfd;