Re: [Bug-tar] Bug with files which have hardlinks

2010-10-11 Thread Bob Proulx
Sergey Poznyakoff wrote: Bob Proulx ha escrit: Why did having afile hardlinked to another file change the behavior of tar? Why did having afile's hardlink count greater than 1 cause tar to think that afile was a hardlink to afile? Tar uses a kind of guesswork to decide whether a file is

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-11 Thread Bob Proulx
Paul Eggert wrote: Bob Proulx wrote: Why did having afile hardlinked to another file change the behavior of tar? You're absolutely right, and this bug was fixed in August: http://git.savannah.gnu.org/cgit/tar.git/commit/?id=37ddfb0b7eb41cc3f58bce686d389b1e965e9ccf and this fix should

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-09 Thread Bob Proulx
Paul Eggert wrote: Thomas Graf wrote: touch afile link afile hlink gtar -cvvf x.tar afile afile afile -rw-r--r-- tom/users 0 2010-10-08 01:49 afile hrw-r--r-- tom/users 0 2010-10-08 01:49 afile link to afile hrw-r--r-- tom/users 0 2010-10-08 01:49 afile link to

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-09 Thread Sergey Poznyakoff
Bob Proulx b...@proulx.com ha escrit: Why did having afile hardlinked to another file change the behavior of tar? Why did having afile's hardlink count greater than 1 cause tar to think that afile was a hardlink to afile? Tar uses a kind of guesswork to decide whether a file is a hard link

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-09 Thread Joerg Schilling
Bob Proulx b...@proulx.com wrote: That does seem odd to me. Compare these two cases: $ date -R afile $ ls -l afile -rw-rw-r-- 1 bob bob 32 2010-10-09 01:07 afile $ tar cvvf x.tar afile afile afile -rw-rw-r-- bob/bob 32 2010-10-09 01:07 afile -rw-rw-r-- bob/bob

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-09 Thread Paul Eggert
On 10/09/2010 12:19 AM, Bob Proulx wrote: Why did having afile hardlinked to another file change the behavior of tar? You're absolutely right, and this bug was fixed in August: http://git.savannah.gnu.org/cgit/tar.git/commit/?id=37ddfb0b7eb41cc3f58bce686d389b1e965e9ccf and this fix should

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-09 Thread Tim Kientzle
On Oct 9, 2010, at 12:19 AM, Bob Proulx wrote: $ tar cvvf x.tar afile afile afile This is a somewhat strange request you're making. I doubt many tar implementations have done anything to optimize this specific case (de-duping the argument list would be one strategy, although -C handling makes

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-08 Thread Joerg Schilling
Paul Eggert egg...@cs.ucla.edu wrote: On 10/07/2010 04:51 PM, Thomas Graf wrote: touch afile link afile hlink gtar -cvvf x.tar afile afile afile -rw-r--r-- tom/users 0 2010-10-08 01:49 afile hrw-r--r-- tom/users 0 2010-10-08 01:49 afile link to afile hrw-r--r--

Re: [Bug-tar] Bug with files which have hardlinks

2010-10-07 Thread Paul Eggert
On 10/07/2010 04:51 PM, Thomas Graf wrote: touch afile link afile hlink gtar -cvvf x.tar afile afile afile -rw-r--r-- tom/users 0 2010-10-08 01:49 afile hrw-r--r-- tom/users 0 2010-10-08 01:49 afile link to afile hrw-r--r-- tom/users 0 2010-10-08 01:49 afile link to