aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-02-08 03:24:47 -0600
committerRob Landley <rob@landley.net>2021-02-08 03:24:47 -0600
commit8828d9cf77ec57604925753eeac45d0463a5b74f (patch)
treea7b02fb84729feb07763f140de9efd85d4f0f92d /tests
parenta079039934311f64a48e1010a97492a22126042e (diff)
downloadtoybox-8828d9cf77ec57604925753eeac45d0463a5b74f.tar.gz
Yi-Yo Chiang reported that readlink() failures could corrupt archive
by not writing as much payload as the header promised.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cpio.test2
1 files changed, 1 insertions, 1 deletions
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