bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Incremental restore bug in tar 1.15.1


From: David Brown
Subject: [Bug-tar] Incremental restore bug in tar 1.15.1
Date: Tue, 23 Aug 2005 22:05:36 -0700

During incremental restore, before removing entities that have gone
away, tar performs a 'stat' call.  However, this stat call is
dereferencing.  If the previously existing entity is a symlink that does
not resolve correctly, this causes tar to print a warning, and not
remove the entity.  I believe that this stat should not dereference
symlinks.  Below is a patch to fix this problem.

Let me know if you want a script to demonstrate this problem, and I can
try to come up with one.

--- tar-1.15.1/src/incremen.c~  2005-08-23 21:27:17.000000000 -0700
+++ tar-1.15.1/src/incremen.c   2005-08-23 21:27:36.000000000 -0700
@@ -518,7 +518,7 @@
          struct stat st;
          char *p = new_name (directory_name, cur);

-         if (deref_stat (true, p, &st))
+         if (deref_stat (false, p, &st))
            {
              stat_diag (p);
              WARN((0, 0, _("%s: Not purging directory: unable to stat"),






reply via email to

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