]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/nfs/cacheio.c
nfs-utils: don't fdatasync the rmtab
[nfs-utils.git] / support / nfs / cacheio.c
index 6a6ed5ac7f093a590e621895a03f2c9e3729683e..bdf5d849b1baa353d1939cc84b3a486d93354173 100644 (file)
@@ -285,9 +285,8 @@ int readline(int fd, char **buf, int *lenp)
 int
 check_new_cache(void)
 {
-       struct stat stb;
-       return  (stat("/proc/fs/nfs/filehandle", &stb) == 0) ||
-               (stat("/proc/fs/nfsd/filehandle", &stb) == 0);
+       return  (access("/proc/fs/nfs/filehandle", F_OK) == 0) ||
+               (access("/proc/fs/nfsd/filehandle", F_OK) == 0);
 }