diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-09-11 16:23:07 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-09-11 16:23:07 +0200 |
commit | 7b729f8686a83b24f3d9a891cde1c35a6aa37cf9 (patch) | |
tree | a8b9ec65d2de72a3097963855621bb254178b4bb /src/sysv-generator/sysv-generator.c | |
parent | Merge pull request #1227 from intelfx/systemctl-legacy-tools-polkit (diff) | |
download | systemd-7b729f8686a83b24f3d9a891cde1c35a6aa37cf9.tar.xz systemd-7b729f8686a83b24f3d9a891cde1c35a6aa37cf9.zip |
sysv-generator: follow symlinks in /etc/rc.d/init.d
Some java packages puts a symlink to init.d and its content is pointing
to latest java installation (because you can have multiple javas on you
machine).
On rhel-based distributions you can use alternatives --initscript
instread of symlink, but this is not usable for other distributions.
Diffstat (limited to 'src/sysv-generator/sysv-generator.c')
-rw-r--r-- | src/sysv-generator/sysv-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index 45b119362c..f9950c8ab9 100644 --- a/src/sysv-generator/sysv-generator.c +++ b/src/sysv-generator/sysv-generator.c @@ -739,7 +739,7 @@ static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) { if (hidden_file(de->d_name)) continue; - if (fstatat(dirfd(d), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { + if (fstatat(dirfd(d), de->d_name, &st, 0) < 0) { log_warning_errno(errno, "stat() failed on %s/%s: %m", *path, de->d_name); continue; } |