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:
parent
9c5077fed4
commit
32d9493e59
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user