From 8828d9cf77ec57604925753eeac45d0463a5b74f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 8 Feb 2021 03:24:47 -0600 Subject: Yi-Yo Chiang reported that readlink() failures could corrupt archive by not writing as much payload as the header promised. --- tests/cpio.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/cpio.test b/tests/cpio.test index 11b3a5bf..6ab3665a 100755 --- a/tests/cpio.test +++ b/tests/cpio.test @@ -39,7 +39,7 @@ rm a bb ccc dddd # archive dangling symlinks and empty files even if we cannot open them touch a; chmod a-rwx a; ln -s a/cant b -toyonly testing "archives unreadable empty files" "cpio -o -H newc|cpio -it" "a\nb\n" "" "a\nb\n" +toyonly testing "archives unreadable empty files" "cpio -o -H newc|cpio -it" "b\na\n" "" "b\na\n" chmod u+rw a; rm -f a b -- cgit v1.2.3