1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-08 14:08:42 +02:00

Add test for extracting ar archive without long filenames

This commit is contained in:
2024-08-20 10:38:54 +02:00
parent 2f4e479ad1
commit 292052912c
3 changed files with 15 additions and 0 deletions

View File

@@ -33,3 +33,9 @@ Create archive.cpio
printf "/tmp/foo\0/123\0very-long-long-long-long-name\0very-long-long-long-long-name2\0very-long-name
-with-newline\0a\nb\0dir/file\0" | cpio -ocv0 --owner=root:root > archive.cpio
Create archive-no-ext_fnhdr.ar
------------------------------
ar qP archive-no-ext_fnhdr.ar dir/file

View File

@@ -0,0 +1,3 @@
!<arch>
dir/file/ 1724142481 1000 1000 100644 14 `
file-in-a-dir