X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Frquotad%2Frquota_server.c;h=8494790b4ce88ef72437972e36e0e6a6134b5da2;hp=1c5e0e6f56c474793a196213467338a87929d953;hb=abb2b251d60c5df9a7906a940b09e800d96e5081;hpb=c01bbec559c7623add9b6e119cfcfdd482e3a975 diff --git a/utils/rquotad/rquota_server.c b/utils/rquotad/rquota_server.c index 1c5e0e6..8494790 100644 --- a/utils/rquotad/rquota_server.c +++ b/utils/rquotad/rquota_server.c @@ -107,8 +107,10 @@ getquota_rslt *getquotainfo(int flags, caddr_t *argp, struct svc_req *rqstp) fp = setmntent(MNTTAB, "r"); while ((mnt = getmntent(fp)) != (struct mntent *)0) { - if (stat(mnt->mnt_dir, &stm) == -1 - || stat(pathname, &stn) == -1) + if (stat(mnt->mnt_dir, &stm) == -1) + continue; + + if (stat(pathname, &stn) == -1) break; else if (stm.st_dev != stn.st_dev) continue;