diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2017-11-24 21:05:16 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-24 21:05:16 +0100 |
commit | 1ff654e28b7b8e7d0a0be33522a84069ac6b07c0 (patch) | |
tree | 42f1ed74d2edbc3cfb2f5c26efec4f656667def1 /src/core/mount-setup.c | |
parent | 64b21ece8c65c93741935749ba01f5877ba50cd6 (diff) | |
download | systemd-1ff654e28b7b8e7d0a0be33522a84069ac6b07c0.tar.gz |
core: remove empty cgroups (#7457)
When we skip an unwritable cgroup also remove the empty mountpoint.
Diffstat (limited to 'src/core/mount-setup.c')
-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; } } |