summaryrefslogtreecommitdiff
path: root/quotaio.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 /quotaio.c
parent04bc20aa76dc9743a3d81ad48427860e0f3f3b2f (diff)
downloadlinuxquota-1883e1ee6514b304d0bb6fa5705644230b145a4b.tar.gz
Fixed bug with rpc.rquotad bad path processing.
Diffstat (limited to 'quotaio.c')
-rw-r--r--quotaio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/quotaio.c b/quotaio.c
index 93f7c60..c08406f 100644
--- a/quotaio.c
+++ b/quotaio.c
@@ -94,7 +94,8 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt, int flags)
fmt = kernfmt; /* Default is kernel used format */
}
}
- if ((fmt = get_qf_name(mnt, type, (fmt == -1) ? ((1 << QF_VFSOLD) | (1 << QF_VFSV0)) : (1 << fmt), NF_FORMAT, &qfname)) < 0) {
+ if ((fmt = get_qf_name(mnt, type, (fmt == -1) ? ((1 << QF_VFSOLD) | (1 << QF_VFSV0)) : (1 << fmt),
+ (!QIO_ENABLED(h) || flags & IOI_OPENFILE) ? NF_FORMAT : 0, &qfname)) < 0) {
errstr(_("Quota file not found or has wrong format.\n"));
goto out_handle;
}