diff options
-rw-r--r-- | src/core/mount-setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 86b25424b2..d5c0fcddcb 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -208,6 +208,7 @@ static int mount_one(const MountPoint *p, bool relabel) { r = access(p->where, W_OK); if (r < 0) { (void) umount(p->where); + (void) rmdir(p->where); return (p->mode & MNT_FATAL) ? r : 0; } } |