summaryrefslogtreecommitdiffstats
path: root/src/home/homework-mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-09-22 16:32:07 +0200
committerLennart Poettering <lennart@poettering.net>2020-09-23 18:57:36 +0200
commit30f5d10421e6b1a22cf5d707a9c90c32914bce6b (patch)
treee12688a4e9874039917ada0f25159f7b0f7aeb30 /src/home/homework-mount.c
parentmount-util: switch most mount_verbose() code over to not follow symlinks (diff)
downloadsystemd-30f5d10421e6b1a22cf5d707a9c90c32914bce6b.tar.xz
systemd-30f5d10421e6b1a22cf5d707a9c90c32914bce6b.zip
mount-util: rework umount_verbose() to take log level and flags arg
Let's make umount_verbose() more like mount_verbose_xyz(), i.e. take log level and flags param. In particular the latter matters, since we typically don't actually want to follow symlinks when unmounting.
Diffstat (limited to 'src/home/homework-mount.c')
-rw-r--r--src/home/homework-mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-mount.c b/src/home/homework-mount.c
index 7c94de49cc..853181b80d 100644
--- a/src/home/homework-mount.c
+++ b/src/home/homework-mount.c
@@ -87,7 +87,7 @@ int home_move_mount(const char *user_name_and_realm, const char *target) {
if (r < 0)
return r;
- r = umount_verbose("/run/systemd/user-home-mount");
+ r = umount_verbose(LOG_ERR, "/run/systemd/user-home-mount", UMOUNT_NOFOLLOW);
if (r < 0)
return r;