]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: fix disable when /etc/systemd/system is a symlink 4063/head
authorLukas Nykryn <lnykryn@redhat.com>
Tue, 30 Aug 2016 13:04:07 +0000 (15:04 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Tue, 30 Aug 2016 13:11:46 +0000 (15:11 +0200)
src/shared/install.c

index 6b82ad05a764964f8498ef69987b6a899044ea90..11770d887fc363c6a88fb5f09bebe61cccd25bb0 100644 (file)
@@ -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;