]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
put the absolute path in quotes in case user's directory has spaces in it 993/head
authorArshan Khanifar <arshankhanifar@gmail.com>
Mon, 12 Feb 2018 21:31:16 +0000 (16:31 -0500)
committerArshan Khanifar <arshankhanifar@gmail.com>
Mon, 12 Feb 2018 21:31:16 +0000 (16:31 -0500)
tar/test/test_option_C_mtree.c

index dc2692ac9971c66d5e7145898d8ae53a42633504..caf8044bf932f7165952136db299fe4a0eb83b9b 100644 (file)
@@ -48,7 +48,7 @@ DEFINE_TEST(test_option_C_mtree)
        assertMakeDir("bar", 0775);
        assertMakeFile("bar/foo", 0777, "abc");
 
-       r = systemf("%s -cf %s -C bar @%s >step1.out 2>step1.err", testprog, filename, absolute_path);
+       r = systemf("%s -cf %s -C bar \"@%s\" >step1.out 2>step1.err", testprog, filename, absolute_path);
 
        failure("Error invoking %s -cf %s -C bar @%s", testprog, filename, absolute_path);
        assertEqualInt(r, 0);