bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] --files-from and recursive extract (behavior change in 1.27)


From: Jean-Louis Martineau
Subject: [Bug-tar] --files-from and recursive extract (behavior change in 1.27)
Date: Thu, 18 Sep 2014 09:37:48 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Hi,

--files-from do not recursively extract since tar-1.27

In tar-1.26, i could put a directory name in a 'list' file and run ' tar -xvf archive.tar --files-from list' to extract the directory recursively.
In tar-1.27 and tar-1.28 it extract only the directory, nothing inside it.

How to reproduce:
mkdir dir1
touch dir1/file1.1 dir1/file1.2
tar cf archive.tar dir1
echo dir1 > list
rm -rf dir1
tar xvf archive.tar --files-from list

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

$../tar-1.27/src/tar xvf archive.tar --files-from list
dir1/

$../tar-1.28/src/tar xvf archive.tar --files-from list
dir1/

How to get the same behavior as tar-1.26?


Also, if I put 'dir1/' (with the /) in the list file tar-1.27 and 1.28 report:
../tar-1.27/src/tar: dir1/: Not found in archive
../tar-1.27/src/tar: Exiting with failure status due to previous errors

tar-1.26 correctly extract it.

Jean-Louis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]