]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Windows, this command line systemf("echo f | bsdcpio -pd copy >copy.out 2>copy...
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 13 Apr 2011 13:54:59 +0000 (09:54 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 13 Apr 2011 13:54:59 +0000 (09:54 -0400)
bsdcpio will get a wrong filename "f ". this "echo f| bsdcpio ...." can correctly pass
a intended filename to bsdcpio.

SVN-Revision: 3224

cpio/test/test_option_u.c

index 08058aa4539610d47f55235757674202fd7b8556..b377def020fbf1f6877e65bdeab8f7e9e406ea3d 100644 (file)
@@ -41,7 +41,7 @@ DEFINE_TEST(test_option_u)
        assertMakeFile("f", 0644, "a");
 
        /* Copy the file to the "copy" dir. */
-       r = systemf("echo f | %s -pd copy >copy.out 2>copy.err",
+       r = systemf("echo f| %s -pd copy >copy.out 2>copy.err",
            testprog);
        assertEqualInt(r, 0);
 
@@ -60,7 +60,7 @@ DEFINE_TEST(test_option_u)
        assertEqualInt(0, utime("f", &times));
 
        /* Copy the file to the "copy" dir. */
-       r = systemf("echo f | %s -pd copy >copy.out 2>copy.err",
+       r = systemf("echo f| %s -pd copy >copy.out 2>copy.err",
            testprog);
        assertEqualInt(r, 0);
 
@@ -70,7 +70,7 @@ DEFINE_TEST(test_option_u)
        assertEqualMem(p, "a", 1);
 
        /* Copy the file to the "copy" dir with -u (force) */
-       r = systemf("echo f | %s -pud copy >copy.out 2>copy.err",
+       r = systemf("echo f| %s -pud copy >copy.out 2>copy.err",
            testprog);
        assertEqualInt(r, 0);