]> git.wh0rd.org - dump.git/blobdiff - restore/dirs.c
Silenced the failure to call fgetflags() when comparing an entry which has no ext2...
[dump.git] / restore / dirs.c
index 423fe6ea9e428fbe286b173dd34215a12530514b..c9a9482cea38f2e47d909ba324283891b75a9ee1 100644 (file)
@@ -42,7 +42,7 @@
 
 #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.30 2005/01/14 13:01:34 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -777,8 +777,10 @@ comparedirmodes(void)
                        }
 #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) {