summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-11-09 08:59:36 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-11-09 09:06:26 +0200
commitdee7e3f16e74e07504bb8f4d80426005fe4364ae (patch)
tree37cf8fa5b88efe54c3f6a65a87164a22f2f0b745 /tests
parent13edc746f61cedd0306ac43e3c05589f9ad650ca (diff)
downloadtar-dee7e3f16e74e07504bb8f4d80426005fe4364ae.tar.gz
Fix --verbatim-files-from
* src/names.c (read_next_name): Don't unquote name read from the file, if --verbatim-files-from option is in effect. (names_options): improve description of --verbatim-files-from * tests/T-null2.at: Test the change.
Diffstat (limited to 'tests')
-rw-r--r--tests/T-null2.at3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/T-null2.at b/tests/T-null2.at
index 6ab8d5b3..b3c4e44b 100644
--- a/tests/T-null2.at
+++ b/tests/T-null2.at
@@ -25,11 +25,13 @@ AT_TAR_CHECK([
AT_DATA([file-list],[a
-b
--c d
+:\\.jpg
])
genfile -f a
genfile -f -b
genfile -f '--c d'
+genfile -f ':\\.jpg'
cat file-list | tr '\n' '\0' | tar -c -f archive -v --null -T -
],
@@ -37,6 +39,7 @@ cat file-list | tr '\n' '\0' | tar -c -f archive -v --null -T -
[a
-b
--c d
+:\\\\.jpg
],
[],[],[],[ustar]) # Testing one format is enough