Commit bfe5a850 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Andrei Vagin

mount: remove leading double slash

As mnt_roots always has a slash at the beginning we don't need another:

(00.156035)      1: mnt: Move the root to //tmp/.criu.mntns.ZKVJHl/15-0000000000
Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent cf77cfac
......@@ -3359,8 +3359,7 @@ int prepare_mnt_ns(void)
}
/* Set its root */
path[0] = '/';
print_ns_root(nsid, 0, path + 1, sizeof(path) - 1);
print_ns_root(nsid, 0, path, sizeof(path) - 1);
if (cr_pivot_root(path))
goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment