summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2016-08-30 15:04:07 +0200
committerLukas Nykryn <lnykryn@redhat.com>2016-08-30 15:11:46 +0200
commit67852d08e6a35d34b428e8be64efdb3f003f4697 (patch)
tree0ff91650decce5e64e49d83515cdb1a55449fcb4 /src/shared
parent4a13100c6a5a0a4b793e90bd43d21c3696c42d46 (diff)
install: fix disable when /etc/systemd/system is a symlink
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index 6b82ad05a7..11770d887f 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -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;