summaryrefslogtreecommitdiff
path: root/quotaon.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2002-05-03 07:05:46 +0000
committerjkar8572 <jkar8572>2002-05-03 07:05:46 +0000
commit1883e1ee6514b304d0bb6fa5705644230b145a4b (patch)
treeff59246795e0be3744869e440c613160d269b526 /quotaon.c
parent04bc20aa76dc9743a3d81ad48427860e0f3f3b2f (diff)
downloadlinuxquota-1883e1ee6514b304d0bb6fa5705644230b145a4b.tar.gz
Fixed bug with rpc.rquotad bad path processing.
Diffstat (limited to 'quotaon.c')
-rw-r--r--quotaon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quotaon.c b/quotaon.c
index 6aa9899..0012431 100644
--- a/quotaon.c
+++ b/quotaon.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quotaon.c,v 1.14 2002/03/27 16:21:26 jkar8572 Exp $"
+#ident "$Id: quotaon.c,v 1.15 2002/05/03 07:05:46 jkar8572 Exp $"
/*
* Turn quota on/off for a filesystem.
@@ -314,9 +314,9 @@ int main(int argc, char **argv)
if (fmt != -1 && !(kernel_formats & (1 << fmt)))
die(1, _("Required format %s not supported by kernel.\n"), fmt2name(fmt));
- if (init_mounts_scan(mntcnt, mntpoints) < 0)
+ if (init_mounts_scan(mntcnt, mntpoints, 0) < 0)
return 1;
- while ((mnt = get_next_mount(0))) {
+ while ((mnt = get_next_mount())) {
if (!strcmp(mnt->mnt_type, MNTTYPE_NFS)) {
if (!(flags & FL_ALL))
fprintf(stderr, "%s: Quota can't be turned on on NFS filesystem\n", mnt->mnt_fsname);