]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Handle "Stale NFS File Handle" cases better.
authorNick Schultz <nick.schultz@intel.com>
Wed, 17 Feb 2016 00:02:44 +0000 (16:02 -0800)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 2 Mar 2016 19:49:11 +0000 (20:49 +0100)
util.c

diff --git a/util.c b/util.c
index 6c89edae94abf006ab6ccf78060c4edb3dcdf41f..0b78afffc3ce97351e6da1f6b9d002e019b87b06 100644 (file)
--- 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);