[CRIU] [PATCH] mount: don't add dot to a path
Andrey Vagin
avagin at openvz.org
Tue Dec 8 05:59:52 PST 2015
From: Andrew Vagin <avagin at virtuozzo.com>
It isn't required and it doesn't work in a case when
we want to bind-mount a file.
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mount.c b/mount.c
index 462f288..662ecf4 100644
--- a/mount.c
+++ b/mount.c
@@ -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:
--
2.4.3
More information about the CRIU
mailing list