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) ...@@ -1104,6 +1104,8 @@ static int tmpfs_dump(struct mount_info *pm)
ret = cr_system(-1, img_raw_fd(img), -1, "tar", (char *[]) ret = cr_system(-1, img_raw_fd(img), -1, "tar", (char *[])
{ "tar", "--create", { "tar", "--create",
"--gzip", "--gzip",
"--no-unquote",
"--no-wildcards",
"--one-file-system", "--one-file-system",
"--check-links", "--check-links",
"--preserve-permissions", "--preserve-permissions",
...@@ -1161,6 +1163,7 @@ static int tmpfs_restore(struct mount_info *pm) ...@@ -1161,6 +1163,7 @@ static int tmpfs_restore(struct mount_info *pm)
ret = cr_system(img_raw_fd(img), -1, -1, "tar", ret = cr_system(img_raw_fd(img), -1, -1, "tar",
(char *[]) {"tar", "--extract", "--gzip", (char *[]) {"tar", "--extract", "--gzip",
"--no-unquote", "--no-wildcards",
"--directory", pm->mountpoint, NULL}); "--directory", pm->mountpoint, NULL});
close_image(img); 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