summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorRhys <rimmington@gmail.com>2016-08-09 23:33:46 +1000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-08-09 09:33:46 -0400
commit1cd1dab98c574f92e1afca184a4c44327c764955 (patch)
tree1960958cbdbc84b69dec45493fd213645933dc81 /src/shared
parente73529f9dd878cc449f5271f749929ebd9e93d88 (diff)
install: follow config_path symlink (#3362)
Under NixOS, the config_path /etc/systemd/system is a symlink to /etc/static/systemd/system. Commands such as `systemctl list-unit-files` and `systemctl is-enabled` did not work as the symlink was not followed. This does not affect how symlinks are treated within the config_path directory.
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 7b49e1ece9..e740ef3910 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -777,7 +777,7 @@ static int find_symlinks(
assert(config_path);
assert(same_name_link);
- 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) {
if (IN_SET(errno, ENOENT, ENOTDIR, EACCES))
return 0;