From 95a15d238120167959bd7aee3e71ac5be3a72804 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 17 Apr 2021 05:54:36 -0500 Subject: Teach cpio to skip runs of NUL bytes between records. --- tests/cpio.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/cpio.test b/tests/cpio.test index 3955800f..9d9d9ba9 100755 --- a/tests/cpio.test +++ b/tests/cpio.test @@ -58,6 +58,8 @@ testing "-i keeps existing files" "echo new >a/b && cpio -i /dev/null; testing "-id keeps existing files" "echo new >a/b && cpio -id /dev/null; cat a/b" "new\n" "" "" testing "-iu replaces existing files; no error" "echo new >a/b && cpio -iu a/b && cpio -idu /dev/null; cat a.cpio; done | cpio -t -H newc" \ + "a\na/b\na\na/b\n" "" "" rm -rf a a.cpio testing "error on empty file" \ -- cgit v1.2.3