[CRIU] [PATCH 3/4] tar: use no-unquote and --no-wildcards
Andrey Vagin
avagin at openvz.org
Fri Jul 17 07:40:24 PDT 2015
to be able to use any symbols in paths
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
mount.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mount.c b/mount.c
index a111ffd..acd74f0 100644
--- a/mount.c
+++ b/mount.c
@@ -1104,6 +1104,8 @@ static int tmpfs_dump(struct mount_info *pm)
ret = cr_system(-1, img_raw_fd(img), -1, "tar", (char *[])
{ "tar", "--create",
"--gzip",
+ "--no-unquote",
+ "--no-wildcards",
"--one-file-system",
"--check-links",
"--preserve-permissions",
@@ -1161,6 +1163,7 @@ static int tmpfs_restore(struct mount_info *pm)
ret = cr_system(img_raw_fd(img), -1, -1, "tar",
(char *[]) {"tar", "--extract", "--gzip",
+ "--no-unquote", "--no-wildcards",
"--directory", pm->mountpoint, NULL});
close_image(img);
--
2.1.0
More information about the CRIU
mailing list