From: hjl Date: Tue, 2 May 2000 00:11:33 +0000 (+0000) Subject: 2000-05-01 H.J. Lu X-Git-Tag: nfs-utils-0-1-7-3~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=abb2b251d60c5df9a7906a940b09e800d96e5081;p=nfs-utils.git 2000-05-01 H.J. Lu * utils/rquotad/rquota_server.c (getquotainfo): Skip bad mounting poins in /etc/fstab. --- diff --git a/ChangeLog b/ChangeLog index 3a61b98..01c2e96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-01 H.J. Lu + + * utils/rquotad/rquota_server.c (getquotainfo): Skip bad + mounting poins in /etc/fstab. + 2000-05-01 H.J. Lu * configure.in (VERSION): Set to "0.1.7.2". 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;