803fb7
From 30c5299e91db30f07b64c6c47ac7417bd4e6988c Mon Sep 17 00:00:00 2001
803fb7
From: Lukas Nykryn <lnykryn@redhat.com>
803fb7
Date: Tue, 30 Aug 2016 15:04:07 +0200
803fb7
Subject: [PATCH] install: fix disable when /etc/systemd/system is a symlink
803fb7
803fb7
Cherry-picked from: 67852d08e6a35d34b428e8be64efdb3f003f4697
803fb7
Resolves: #1285996
803fb7
---
803fb7
 src/shared/install.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/shared/install.c b/src/shared/install.c
803fb7
index 61aaafe7b..ab86cd145 100644
803fb7
--- a/src/shared/install.c
803fb7
+++ b/src/shared/install.c
803fb7
@@ -476,7 +476,7 @@ static int remove_marked_symlinks(
803fb7
         if (set_size(remove_symlinks_to) <= 0)
803fb7
                 return 0;
803fb7
 
803fb7
-        fd = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
803fb7
+        fd = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC);
803fb7
         if (fd < 0)
803fb7
                 return -errno;
803fb7