X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Fdirs.c;h=26c637bffb69bebb46a58df6bf5c0869d6da8bc9;hp=423fe6ea9e428fbe286b173dd34215a12530514b;hb=f30c53e5aacd10d449f01703b31a927c8a7a3134;hpb=a55ce9149e3f4a5f848a20b7593dbe8cd7b0bbd1 diff --git a/restore/dirs.c b/restore/dirs.c index 423fe6e..26c637b 100644 --- a/restore/dirs.c +++ b/restore/dirs.c @@ -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.31 2005/01/24 10:32:14 stelian Exp $"; #endif /* not lint */ #include @@ -753,7 +753,7 @@ comparedirmodes(void) unsigned long newflags; if (LSTAT(cp, &sb) < 0) { - warn("%s: does not exist", cp); + warn("unable to stat %s", cp); do_compare_error; continue; } @@ -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) {