]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/nfs/cacheio.c
Release 1.0.5
[nfs-utils.git] / support / nfs / cacheio.c
index 77facb1eaccc7158dedef07f08db8c0bef448017..ff5b02813e256c12b017da5356d80ecb17b9c43c 100644 (file)
@@ -260,7 +260,7 @@ cache_flush(int force)
                int fd;
                sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]);
                fd = open(path, O_RDWR);
-               if (fd) {
+               if (fd >= 0) {
                        write(fd, stime, strlen(stime));
                        close(fd);
                }