From 59157c4442d31775624ad5b8b0bd3e0e3548b624 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Wed, 15 Aug 2001 20:13:42 +0000 Subject: Fixed a few error messages. Implemented new mountpoint scanning. Implemented caching for scanning in old quota format. Implemented automatic choice of appropriate units in repquota, quota. --- quotaio.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'quotaio.c') diff --git a/quotaio.c b/quotaio.c index d54f731..6c0f90e 100644 --- a/quotaio.c +++ b/quotaio.c @@ -126,13 +126,12 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt, int flags) /* Check file format */ h->qh_fmt = detect_qf_format(fd, type); if (h->qh_fmt == -2) { - errstr(_("Quotafile format too new in %s\n"), - qfname); + errstr(_("Quotafile format too new in %s\n"), qfname); goto out_lock; } if (fmt != -1 && h->qh_fmt != fmt) { errstr(_("Quotafile format detected differs from the specified one (or the one kernel uses on the file).\n")); - goto out_handle; + goto out_lock; } } else { @@ -151,10 +150,10 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt, int flags) goto out_lock; } return h; - out_lock: +out_lock: if (fd != -1) flock(fd, LOCK_UN); - out_handle: +out_handle: if (qfname) free(qfname); free(h); -- cgit v1.2.3