From: Arshan Khanifar Date: Mon, 12 Feb 2018 21:31:16 +0000 (-0500) Subject: put the absolute path in quotes in case user's directory has spaces in it X-Git-Tag: v3.3.3~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25175f9a1b387b22aadb5d2755213d1b40dbbffc;p=thirdparty%2Flibarchive.git put the absolute path in quotes in case user's directory has spaces in it --- diff --git a/tar/test/test_option_C_mtree.c b/tar/test/test_option_C_mtree.c index dc2692ac9..caf8044bf 100644 --- a/tar/test/test_option_C_mtree.c +++ b/tar/test/test_option_C_mtree.c @@ -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);