Re: [Bug-tar] --backup can destroy an extracted member when followed by an existing directory

2009-08-05 Thread Sergey Poznyakoff
Carl Worth cwo...@cworth.org ha escrit: I've traced through the code a bit and the problem is due to the handling of directory entries in extract.c:extract_archive(). Thanks for the in-depth analysis. I have applied the attached patch. Regards, Sergey From

[Bug-tar] --backup can destroy an extracted member when followed by an existing directory

2009-08-04 Thread Carl Worth
On Mon, 08 Dec 2008 13:41:57 -0500 Eric Lammerts wrote: When extracting, tar sometimes renames a backup back to the original name (overwriting the newly-extracted file) for no good reason. Example: # mkdir dir1 dir2 # echo bla dir1/file1 # tar cf test.tar dir1 dir2 # tar xfv test.tar