summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-09-22 15:51:17 +0200
committerLennart Poettering <lennart@poettering.net>2020-09-23 18:57:36 +0200
commit511a8cfe300662963522cea314e3b2426fc2f3ee (patch)
treed496c0cb8d88bb47552dbf3dc450758671715c6b /src/core
parent5012d567a8e903693998fe9fb96a5aa86f49c986 (diff)
downloadsystemd-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.c5
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;