X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fswitch-root.c;fp=src%2Fshared%2Fswitch-root.c;h=b12189cd10c7a195f98de5e0eaea9d4599f119fe;hp=ae3839de162c9f4d254c04ce5fe9d274442460ed;hb=dbf4628bfa9e71926abc3d8805f3015b4072d6ad;hpb=ca75f92e71a3778d043a7c5ea3f31f05d2f7f8c4 diff --git a/src/shared/switch-root.c b/src/shared/switch-root.c index ae3839de1..b12189cd1 100644 --- a/src/shared/switch-root.c +++ b/src/shared/switch-root.c @@ -105,7 +105,7 @@ int switch_root(const char *new_root, const char *oldroot, bool detach_oldroot, * to look like. They might even boot, if they are RO and * don't have the FS layout. Just ignore the error and * switch_root() nevertheless. */ - (void) base_filesystem_create(new_root); + (void) base_filesystem_create(new_root, UID_INVALID, GID_INVALID); if (chdir(new_root) < 0) return log_error_errno(errno, "Failed to change directory to %s: %m", new_root);