X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftraverse.c;h=0a394aea1c304c3ab4ee66125639fb87ee2341b2;hp=491d43ad28169b5b949817d656ed9398b2351348;hb=7af2fada292acbfb50d441c4be192690dff40283;hpb=c5e38bc12e0a29762e7a4561c815ab8a7c8ade56 diff --git a/dump/traverse.c b/dump/traverse.c index 491d43a..0a394ae 100644 --- a/dump/traverse.c +++ b/dump/traverse.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: traverse.c,v 1.69 2010/04/28 09:29:50 stelian Exp $"; + "$Id: traverse.c,v 1.70 2010/06/10 12:01:30 stelian Exp $"; #endif /* not lint */ #include @@ -574,9 +574,10 @@ mapdirs(dump_ino_t maxino, long long *tapesize) * in usedinomap, but we have to go through it anyway * to propagate the nodump attribute. */ + if ((isdir & 1) == 0) + continue; nodump = (TSTINO(ino, usedinomap) == 0); - if ((isdir & 1) == 0 || - (TSTINO(ino, dumpinomap) && nodump == 0)) + if (TSTINO(ino, dumpinomap) && nodump == 0) continue; dp = getino(ino); #ifdef __linux__