Package: tar
Version: 1.14-2.2
Severity: normal

tar reports an error if you use --null together with -C and -T
and tar creates an archive with wring content

Example:
cd
dir=/usr/share/doc
(cd "$dir"; find . -type f -name \*.pdf.gz -print0) | tar -C "$dir" --null -T - 
-cvzf pdf.tar.gz

tar: -C: Cannot stat: No such file or directory
tar: Removing leading `/' from member names
/usr/share/doc/
/usr/share/doc/base-files/
/usr/share/doc/base-files/README.FHS
/usr/share/doc/base-files/README.base
/usr/share/doc/base-files/copyright
...



for comparison, the same without --null:
cd
dir=/usr/share/doc
(cd "$dir"; find . -type f -name \*.pdf.gz) | tar -C "$dir" -T - -cvzf 
pdf.tar.gz

./fontconfig/fontconfig-user.pdf.gz




(same effect with tar 1.15.91-2 (sid), but without the error message
"tar: -C: Cannot stat: No such file or directory")


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to