Blame SOURCES/cpio-2.11-testsuite-CVE-2014-9112.patch

dd3c47
diff --git a/tests/symlink-bad-length.at b/tests/symlink-bad-length.at
dd3c47
index cbf4aa7..d8d250b 100644
dd3c47
--- a/tests/symlink-bad-length.at
dd3c47
+++ b/tests/symlink-bad-length.at
dd3c47
@@ -37,13 +37,20 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
dd3c47
 
dd3c47
 AT_CHECK([
dd3c47
 base64 -d ARCHIVE.base64 > ARCHIVE || AT_SKIP_TEST
dd3c47
-cpio -ntv < ARCHIVE
dd3c47
-test $? -eq 2
dd3c47
+TZ=UTC cpio -ntv < ARCHIVE 2>stderr
dd3c47
+rc=$?
dd3c47
+cat stderr | grep -v \
dd3c47
+    -e 'stored filename length is out of range' \
dd3c47
+    -e 'premature end of file' \
dd3c47
+    -e 'archive header has reverse byte-order' \
dd3c47
+    -e 'memory exhausted' \
dd3c47
+    >&2
dd3c47
+echo >&2 STDERR
dd3c47
+test "$rc" -ne 0
dd3c47
 ],
dd3c47
 [0],
dd3c47
-[-rw-rw-r--   1 10029    10031          13 Nov 25 13:52 FILE
dd3c47
-],[cpio: LINK: stored filename length is out of range
dd3c47
-cpio: premature end of file
dd3c47
+[-rw-rw-r--   1 10029    10031          13 Nov 25  2014 FILE
dd3c47
+],[STDERR
dd3c47
 ])
dd3c47
 
dd3c47
 AT_CLEANUP