]> git.wh0rd.org - dump.git/blobdiff - restore/tape.c
Silenced the failure to call fgetflags() when comparing an entry which has no ext2...
[dump.git] / restore / tape.c
index aa0dbd7021a711c2192da6c4646fcb64dc7f6993..c4c50c0cc750d5af689358a9052e611ccf95e740 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.84 2004/12/15 11:00:01 stelian Exp $";
+       "$Id: tape.c,v 1.85 2005/01/14 13:01:34 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -1678,8 +1678,10 @@ comparefile(char *name)
        }
 #ifdef  __linux__
        if (lgetflags(name, &newflags) < 0) {
-               warn("%s: lgetflags failed", name);
-               do_compare_error;
+               if (flags != 0) {
+                       warn("%s: lgetflags failed", name);
+                       do_compare_error;
+               }
        }
        else {
                if (newflags != flags) {