From: Nick Schultz Date: Wed, 17 Feb 2016 00:02:44 +0000 (-0800) Subject: Handle "Stale NFS File Handle" cases better. X-Git-Tag: v3.2.5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e65cd9ccf4aa6ca1dd4750baffef1bfa956f22e1;p=thirdparty%2Fccache.git Handle "Stale NFS File Handle" cases better. --- diff --git a/util.c b/util.c index 6c89edae9..0b78afffc 100644 --- a/util.c +++ b/util.c @@ -881,7 +881,7 @@ traverse(const char *dir, void (*fn)(const char *, struct stat *)) fname = format("%s/%s", dir, de->d_name); if (lstat(fname, &st)) { - if (errno != ENOENT) { + if ((errno != ENOENT) && (errno != ESTALE)) { fatal("lstat %s failed: %s", fname, strerror(errno)); } free(fname);