Hi Sergey,

The patch fix the first issue I reported, but not the second.

mkdir dir1
touch dir1/file1.1 dir1/file1.2
tar cf archive.tar dir1
echo dir1/ > list ## NOTE the /
rm -rf dir1
tar xvf archive.tar --files-from list

$ ../tar-1.26/src/tar xvf archive.tar --files-from list
dir1/
dir1/file-1.2
dir1/file1-1

$ ../tar-1.28/src/tar xvf archive.tar --files-from list
../tar-1.28/src/tar: dir1/: Not found in archive
../tar-1.28/src/tar: Exiting with failure status due to previous errors

Why it doesn't accept the trailing slash in a files-from, it works on command line:
$ ../tar-1.28/src/tar xvf archive.tar dir1/
dir1/
dir1/file-1.2
dir1/file1-1


Jean-Louis

On 09/18/2014 11:02 AM, Sergey Poznyakoff wrote:
Hi Jean-Louis,

--files-from do not recursively extract since tar-1.27
Thanks for reporting.  Please try the attached patch.

Regards,
Sergey



Reply via email to