X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fswitch-root.c;h=b12189cd10c7a195f98de5e0eaea9d4599f119fe;hb=d896ac2d2fbce41a0b11a0618a685adeaf18b8fe;hp=ae3839de162c9f4d254c04ce5fe9d274442460ed;hpb=e777ddfd71f3b2d3217ffe74f287388832915d0b;p=elogind.git 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);