]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
2000-05-01 H.J. Lu <hjl@lucon.org>
authorhjl <hjl>
Tue, 2 May 2000 00:11:33 +0000 (00:11 +0000)
committerhjl <hjl>
Tue, 2 May 2000 00:11:33 +0000 (00:11 +0000)
* utils/rquotad/rquota_server.c (getquotainfo): Skip bad
mounting poins in /etc/fstab.

ChangeLog
utils/rquotad/rquota_server.c

index 3a61b9868113031ab0876e5c54541cf088a120ed..01c2e960c363a5ed4f97ecd37c59b7fbdc9718eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-01  H.J. Lu <hjl@lucon.org>
+
+       * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
+       mounting poins in /etc/fstab.
+
 2000-05-01  H.J. Lu <hjl@lucon.org>
 
        * configure.in (VERSION): Set to "0.1.7.2".
index 1c5e0e6f56c474793a196213467338a87929d953..8494790b4ce88ef72437972e36e0e6a6134b5da2 100644 (file)
@@ -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;