[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] --files-from and recursive extract (behavior change in 1.2
From: |
Jean-Louis Martineau |
Subject: |
Re: [Bug-tar] --files-from and recursive extract (behavior change in 1.27) |
Date: |
Thu, 18 Sep 2014 11:33:18 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
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