X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fnfs%2Fcacheio.c;fp=support%2Fnfs%2Fcacheio.c;h=bdf5d849b1baa353d1939cc84b3a486d93354173;hp=6a6ed5ac7f093a590e621895a03f2c9e3729683e;hb=7b0e4faaf3169c69828d3f7769ed8ce9142e100b;hpb=2ba89d65421cba255a0e75a7f646e4bbb2487193 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); }