mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
install: fix disable when /etc/systemd/system is a symlink
This commit is contained in:
parent
4a13100c6a
commit
67852d08e6
@ -643,7 +643,7 @@ static int remove_marked_symlinks(
|
||||
if (set_size(remove_symlinks_to) <= 0)
|
||||
return 0;
|
||||
|
||||
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);
|
||||
if (fd < 0)
|
||||
return errno == ENOENT ? 0 : -errno;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user