aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tar.tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tar: fix testsuiteDenys Vlasenko2021-08-161-7/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite/tar.tests: fix false positiveDenys Vlasenko2018-06-271-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite/tar.tests: fix false positiveDenys Vlasenko2018-06-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix interaction of delayed symlink and hardlink creationHarald van Dijk2018-05-221-0/+16
| | | | | | | | | | | | | | | | function old new delta create_or_remember_link - 106 +106 create_links_from_list - 93 +93 find_applet_by_name 124 128 +4 unzip_main 2724 2726 +2 data_extract_all 891 873 -18 create_symlinks_from_list 64 - -64 create_or_remember_symlink 94 - -94 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 2/1 up/down: 205/-176) Total: 29 bytes Signed-off-by: Harald van Dijk <harald@gigawatt.nl> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar,unzip: postpone creation of symlinks with "suspicious" targetsDenys Vlasenko2018-02-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This mostly reverts commit bc9bbeb2b81001e8731cd2ae501c8fccc8d87cc7 "libarchive: do not extract unsafe symlinks unless $EXTRACT_UNSAFE_SYMLINKS=1" Users report that it is somewhat too restrictive. See https://bugs.busybox.net/show_bug.cgi?id=8411 In particular, this interferes with unpacking of busybox-based filesystems with links like "sbin/applet" -> "../bin/busybox". The change is made smaller by deleting ARCHIVE_EXTRACT_QUIET flag - it is unused since 2010, and removing conditionals on it allows commonalizing some error message codes. function old new delta create_or_remember_symlink - 94 +94 create_symlinks_from_list - 64 +64 tar_main 1002 1006 +4 unzip_main 2732 2724 -8 data_extract_all 984 891 -93 unsafe_symlink_target 147 - -147 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/2 up/down: 162/-248) Total: -86 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libarchive: do not extract unsafe symlinks unless $EXTRACT_UNSAFE_SYMLINKS=1Denys Vlasenko2017-08-101-5/+5
| | | | | | | | | | | | | function old new delta unsafe_symlink_target - 147 +147 unzip_main 2711 2732 +21 copy_file 1657 1678 +21 tar_main 999 971 -28 data_extract_all 1038 984 -54 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/2 up/down: 189/-82) Total: 107 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: postpone creation of symlinks with "suspicious" targets. Closes 8411Denys Vlasenko2017-07-241-11/+54
| | | | | | | | | | | function old new delta data_extract_all 968 1038 +70 tar_main 952 986 +34 scan_tree 258 262 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 108/0) Total: 108 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2016-12-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2016-12-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2016-12-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2016-12-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: handle pax-encoded utf8 filenames and link names. Closes 9406Denys Vlasenko2016-11-111-0/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 5: false positive for tar; mount emits corrupted messageDenys Vlasenko2016-06-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 4Denys Vlasenko2016-06-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixes 2Denys Vlasenko2016-06-191-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add a test that we don't write into symlinksDenys Vlasenko2015-10-221-0/+43
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for --strip-components=NDenys Vlasenko2015-10-221-0/+10
| | | | | | | | | | | function old new delta data_extract_all 882 995 +113 tar_longopts 290 309 +19 tar_main 938 942 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 136/0) Total: 136 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: remove forgotten debug hackDenys Vlasenko2013-12-311-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix failures found by randomconfig buildsDenys Vlasenko2013-12-311-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: prevent empty file to be treated as valid tarballDenys Vlasenko2013-11-191-0/+25
| | | | | | | function old new delta tar_main 879 895 +16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix a copy/paste error in last tar testcase nameDenys Vlasenko2013-11-191-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add a testcase for previous commitDenys Vlasenko2013-11-191-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: add a test that tar detects XZ-compressed dataDenys Vlasenko2012-03-061-0/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2011-08-101-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: skip leading / and handle names like abc/..////def -> def (not ///def)Denys Vlasenko2011-03-021-1/+1
| | | | | | | | | function old new delta strip_unsafe_prefix - 105 +105 writeFileToTarball 557 520 -37 get_header_tar 1545 1462 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: on extract, everything up to and including last ".." is strippedDenys Vlasenko2011-03-011-0/+17
| | | | | | | function old new delta get_header_tar 1493 1545 +52 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2011-02-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix a bug where autodetection messes up -z on extractDenys Vlasenko2011-02-061-0/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fixed a couple of failing tar testsDan Fandrich2010-09-121-4/+5
| | | | | | | | | The tar symlinks mode test is fixed similarly to the hardlinks test in 0d7cb4cc, and the read-only test is skipped by SKIP_KNOWN_BUGS. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* tar: add a test for extraction of read-only directoryDan Fandrich2010-09-051-0/+25
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix false positive in testsuite/tar.testsDenys Vlasenko2010-09-031-4/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Fix some test casesDan Fandrich2010-09-031-2/+6
| | | | | | | | The tar tests still don't pass, but at least now it's because of a problem with Busybox and not the tests themselves. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Improved portability of testsDan Fandrich2010-08-111-0/+6
| | | | | | | | Removed assumptions about umask and locale. Fixed hostname tests to work even when the host has no DNS domain set. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomtest fixesDenys Vlasenko2010-05-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomtest fixesDenys Vlasenko2010-05-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomtest fixesDenys Vlasenko2010-05-111-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig testsuite fixesDenys Vlasenko2010-05-101-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix "hardlinks to symlinks chown" bug 1519.Denys Vlasenko2010-04-091-0/+29
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix mishandling of repeated hardlink in tarball; expand testsDenys Vlasenko2010-04-091-7/+45
| | | | | | | | function old new delta data_extract_all 727 767 +40 get_header_tar 1576 1572 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite fixesChris Metcalf2010-04-021-0/+2
| | | | | Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for --overwrite. +70 bytes.Denys Vlasenko2009-12-161-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differencesDenys Vlasenko2009-12-161-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add a test for latest fixDenys Vlasenko2009-11-291-0/+35
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>