summaryrefslogtreecommitdiffstats
path: root/src/shared/mount-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/mount-setup.c')
-rw-r--r--src/shared/mount-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c
index 7057a8763e..da6bf27426 100644
--- a/src/shared/mount-setup.c
+++ b/src/shared/mount-setup.c
@@ -189,7 +189,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
strna(p->options));
if (FLAGS_SET(p->mode, MNT_FOLLOW_SYMLINK))
- r = mount(p->what, p->where, p->type, p->flags, p->options) < 0 ? -errno : 0;
+ r = RET_NERRNO(mount(p->what, p->where, p->type, p->flags, p->options));
else
r = mount_nofollow(p->what, p->where, p->type, p->flags, p->options);
if (r < 0) {