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.
This commit is contained in:
Sergey Poznyakoff
2017-11-09 08:59:36 +02:00
parent 13edc746f6
commit dee7e3f16e
2 changed files with 12 additions and 6 deletions

View File

@@ -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