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

2014-09-18 Thread Jean-Louis Martineau
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

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

2014-09-18 Thread Sergey Poznyakoff
Hi Jean-Louis, --files-from do not recursively extract since tar-1.27 Thanks for reporting. Please try the attached patch. Regards, Sergey From 890a81d753b506d6dfd2031d6633d3f5be38a966 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff g...@gnu.org.ua Date: Thu, 18 Sep 2014 18:06:40 +0300

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

2014-09-18 Thread Jean-Louis Martineau
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/

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

2014-09-18 Thread Sergey Poznyakoff
The patch fix the first issue I reported, but not the second. Yes, indeed. I have installed the following patch instead, which fixes both issues. Regards, Sergey * src/common.h (name_add_file): Change signature. * src/names.c (name_elt_alloc_matflags): New function. (name_add_name): Use