Commit 2c747325 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

mount: don't add dot to a path

It isn't required and it doesn't work in a case when
we want to bind-mount a file.
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ff3fb16f
......@@ -2312,7 +2312,7 @@ static int do_bind_mount(struct mount_info *mi)
if (mnt_path == NULL)
return -1;
snprintf(rpath, sizeof(rpath), "%s/%s/.",
snprintf(rpath, sizeof(rpath), "%s/%s",
mnt_path, cut_root);
root = rpath;
do_bind:
......
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