]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Improve the testing of tar -X and try to correctly handle some odd cases.
authorTim Kientzle <kientzle@gmail.com>
Sun, 11 Apr 2010 18:08:36 +0000 (14:08 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 11 Apr 2010 18:08:36 +0000 (14:08 -0400)
commit7a2b46a89ad69a7a8265ab6c36a3b7aa7a1a63a6
tree4ff93e6fd67a8440deac3cf8e3ba008bedbf0bea
parent30a01e4b5aa1f4dd0b13b1c68431609c9844e5df
Improve the testing of tar -X and try to correctly handle some odd cases.
Here are some of the cases currently handled
(assuming test.tar contains a single entry "file1"):

 $ tar xf test.tar file1

Extracts file1 with no error.

 $ tar xf test.tar file1 file2

Extracts file1, error because file2 was requested but not found.

 $ tar xf test.tar file1 'file2*'

Extracts file1, error because 'file2*' pattern matched no entries.

 $ tar xf test.tar file1 file1

Extracts file1 with no error

 $ tar xf test.tar file1 'file*'

Extracts file1 with no error

 $ tar xf test.tar --exclude=file1

Does not extract file1, no error.

 $ tar xf test.tar --exclude=file1 file1

Does not extract file1, no error.

 $ tar xf test.tar --exclude=file2 file1

Extracts file1, no error.

SVN-Revision: 2229
libarchive_fe/matching.c
tar/test/test_option_X_upper.c