From 25175f9a1b387b22aadb5d2755213d1b40dbbffc Mon Sep 17 00:00:00 2001 From: Arshan Khanifar Date: Mon, 12 Feb 2018 16:31:16 -0500 Subject: [PATCH] put the absolute path in quotes in case user's directory has spaces in it --- tar/test/test_option_C_mtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2