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:
6
tests/fixtures/README
vendored
6
tests/fixtures/README
vendored
@@ -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
|
||||
|
3
tests/fixtures/archive-no-ext_fnhdr.ar
vendored
Normal file
3
tests/fixtures/archive-no-ext_fnhdr.ar
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
!<arch>
|
||||
dir/file/ 1724142481 1000 1000 100644 14 `
|
||||
file-in-a-dir
|
Reference in New Issue
Block a user