]> git.wh0rd.org - dump.git/blobdiff - restore/dirs.c
Emit warnings not panic() when comparing a file and we don't have enough priviledges...
[dump.git] / restore / dirs.c
index 423fe6ea9e428fbe286b173dd34215a12530514b..26c637bffb69bebb46a58df6bf5c0869d6da8bc9 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: dirs.c,v 1.29 2004/12/15 11:00:01 stelian Exp $";
+       "$Id: dirs.c,v 1.31 2005/01/24 10:32:14 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -753,7 +753,7 @@ comparedirmodes(void)
                        unsigned long newflags;
 
                        if (LSTAT(cp, &sb) < 0) {
                        unsigned long newflags;
 
                        if (LSTAT(cp, &sb) < 0) {
-                               warn("%s: does not exist", cp);
+                               warn("unable to stat %s", cp);
                                do_compare_error;
                                continue;
                        }
                                do_compare_error;
                                continue;
                        }
@@ -777,8 +777,10 @@ comparedirmodes(void)
                        }
 #ifdef __linux__
                        if (lgetflags(cp, &newflags) < 0) {
                        }
 #ifdef __linux__
                        if (lgetflags(cp, &newflags) < 0) {
-                               warn("%s: lgetflags failed", cp);
-                               do_compare_error;
+                               if (node.flags != 0) {
+                                       warn("%s: lgetflags failed", cp);
+                                       do_compare_error;
+                               }
                        }
                        else {
                                if (newflags != node.flags) {
                        }
                        else {
                                if (newflags != node.flags) {