X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fnfs%2Fcacheio.c;h=bdf5d849b1baa353d1939cc84b3a486d93354173;hb=84346b7d7e69c113d6dbf03f2646a47b0e74a6b8;hp=6a6ed5ac7f093a590e621895a03f2c9e3729683e;hpb=70561910500556c8109ca2e5683a92ed51c82bb7;p=nfs-utils.git diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c index 6a6ed5a..bdf5d84 100644 --- a/support/nfs/cacheio.c +++ b/support/nfs/cacheio.c @@ -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); }