diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-22 15:51:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-23 18:57:36 +0200 |
commit | 511a8cfe300662963522cea314e3b2426fc2f3ee (patch) | |
tree | d496c0cb8d88bb47552dbf3dc450758671715c6b /src/core | |
parent | 5012d567a8e903693998fe9fb96a5aa86f49c986 (diff) | |
download | systemd-511a8cfe300662963522cea314e3b2426fc2f3ee.tar.gz |
mount-util: switch most mount_verbose() code over to not follow symlinks
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/automount.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/automount.c b/src/core/automount.c index 4db763f84e..8318deef8a 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -601,10 +601,9 @@ static void automount_enter_waiting(Automount *a) { xsprintf(options, "fd=%i,pgrp="PID_FMT",minproto=5,maxproto=5,direct", p[1], getpgrp()); xsprintf(name, "systemd-"PID_FMT, getpid_cached()); - if (mount(name, a->where, "autofs", 0, options) < 0) { - r = -errno; + r = mount_nofollow(name, a->where, "autofs", 0, options); + if (r < 0) goto fail; - } mounted = true; |