Description of problem: When using the --listed-incremental option to tar, files directories that have been moved are not properly kept track of. This has implications when restoring from multiple archives, specifically discovered in amanda. Version-Release number of selected component (if applicable): tar-1.14-9.RHEL4 How reproducible: Always Steps to Reproduce: 1. Create a directory with some files in it: $ mkdir blah $ mkdir blah/a $ touch blah/a/foo $ touch blah/a/bar 2. Create a listed incremental $ tar -cvf test1.tar --listed-incremental test1.incr blah tar: blah/a: Directory is new blah/ blah/a/ blah/a/bar blah/a/foo 3. Rename the directory, re-run the listed incremental $ mv blah/a/ blah/b $ tar -cvf test1.tar --listed-incremental test1.incr blah tar: blah/b: Directory is new blah/ blah/b/ Actual results: The files are not included in the listed incremental Expected results: The files are included in the listed incremental Additional info: This works with tar 1.15.1. The output is as follows: $ mkdir blah $ mkdir blah/a $ touch blah/a/foo $ touch blah/a/bar $ tar -cvf test1.tar --listed-incremental test1.incr blah tar: blah/a: Directory is new blah/ blah/a/ blah/a/bar blah/a/foo $ mv blah/a/ blah/b $ tar -cvf test1.tar --listed-incremental test1.incr blah tar: blah/b: Directory is new blah/ blah/b/ blah/b/bar blah/b/foo
Created attachment 126405 [details] patch extracted from upstream CVS
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0336.html