diff options
author | jkar8572 <jkar8572> | 2002-05-03 07:05:46 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2002-05-03 07:05:46 +0000 |
commit | 1883e1ee6514b304d0bb6fa5705644230b145a4b (patch) | |
tree | ff59246795e0be3744869e440c613160d269b526 /quotaio.c | |
parent | 04bc20aa76dc9743a3d81ad48427860e0f3f3b2f (diff) | |
download | linuxquota-1883e1ee6514b304d0bb6fa5705644230b145a4b.tar.gz |
Fixed bug with rpc.rquotad bad path processing.
Diffstat (limited to 'quotaio.c')
-rw-r--r-- | quotaio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |