diff options
author | hjl <hjl> | 2000-05-02 00:11:33 +0000 |
---|---|---|
committer | hjl <hjl> | 2000-05-02 00:11:33 +0000 |
commit | abb2b251d60c5df9a7906a940b09e800d96e5081 (patch) | |
tree | 56a94d7a032ee1c047053adf3c80b8356bba4048 /utils | |
parent | c01bbec559c7623add9b6e119cfcfdd482e3a975 (diff) | |
download | nfs-utils-abb2b251d60c5df9a7906a940b09e800d96e5081.tar.gz nfs-utils-abb2b251d60c5df9a7906a940b09e800d96e5081.tar.xz nfs-utils-abb2b251d60c5df9a7906a940b09e800d96e5081.zip |
2000-05-01 H.J. Lu <hjl@lucon.org>
* utils/rquotad/rquota_server.c (getquotainfo): Skip bad
mounting poins in /etc/fstab.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/rquotad/rquota_server.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |