diff options
author | jkar8572 <jkar8572> | 2001-08-15 20:13:42 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-08-15 20:13:42 +0000 |
commit | 59157c4442d31775624ad5b8b0bd3e0e3548b624 (patch) | |
tree | bb6267b7fe46ef8f5da69c11827e9cfd69e612e1 /quotaio.c | |
parent | 805ee8ff8b05468a2f2ce09db619bded1d6a687d (diff) |
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.
Diffstat (limited to 'quotaio.c')
-rw-r--r-- | quotaio.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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); |