diff options
author | Arshan Khanifar <arshankhanifar@gmail.com> | 2018-02-12 16:31:16 -0500 |
---|---|---|
committer | Arshan Khanifar <arshankhanifar@gmail.com> | 2018-02-12 16:31:16 -0500 |
commit | 25175f9a1b387b22aadb5d2755213d1b40dbbffc (patch) | |
tree | 4ec5dea88db5c508aeda69734231675bb34411fc | |
parent | 8076d71f3f7d6bf3e38d6034b3fe52072065b5a5 (diff) | |
download | libarchive-25175f9a1b387b22aadb5d2755213d1b40dbbffc.tar.gz |
put the absolute path in quotes in case user's directory has spaces in it
-rw-r--r-- | tar/test/test_option_C_mtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/test/test_option_C_mtree.c b/tar/test/test_option_C_mtree.c index dc2692ac..caf8044b 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); |