1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

nspawn: make sure mount_legacy_cgroup_hierarchy() can deal with NULL root directories

This commit is contained in:
Lennart Poettering 2015-09-30 12:20:26 +02:00
parent eb7ec83860
commit ee30f6ac32

View File

@ -534,7 +534,7 @@ static int mount_legacy_cgroup_hierarchy(const char *dest, const char *controlle
char *to; char *to;
int r; int r;
to = strjoina(dest, "/sys/fs/cgroup/", hierarchy); to = strjoina(strempty(dest), "/sys/fs/cgroup/", hierarchy);
r = path_is_mount_point(to, 0); r = path_is_mount_point(to, 0);
if (r < 0 && r != -ENOENT) if (r < 0 && r != -ENOENT)