Commit 8360d9aa authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

tar: use no-unquote and --no-wildcards

to be able to use any symbols in paths
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5b767ffd
......@@ -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);
......
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