summaryrefslogtreecommitdiffstats
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>2007-01-23 02:13:00 +0000
committermpp <mpp@FreeBSD.org>2007-01-23 02:13:00 +0000
commitfff1ced6bfef6c671598797db9ca79f3b659ce23 (patch)
treec495778c43c205a381ca211066e8736c878c8fdf /sbin/quotacheck
parentd0c16759d93b32c7224332a0d01bcb86c69a4ca6 (diff)
downloadFreeBSD-src-fff1ced6bfef6c671598797db9ca79f3b659ce23.zip
FreeBSD-src-fff1ced6bfef6c671598797db9ca79f3b659ce23.tar.gz
Use fseeko to seek in the file, instead of fseek to prevent seek
errors for extremely large uids (e.g. in the billions range).
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index e4c7c61..deaacae 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -498,7 +498,7 @@ update(fsname, quotafile, type)
dqbuf.dqb_itime = 0;
dqbuf.dqb_curinodes = fup->fu_curinodes;
dqbuf.dqb_curblocks = fup->fu_curblocks;
- if (fseek(qfo, offset, SEEK_SET) < 0) {
+ if (fseeko(qfo, offset, SEEK_SET) < 0) {
warn("%s: seek failed", quotafile);
return(1);
}
@@ -528,7 +528,7 @@ update(fsname, quotafile, type)
dqbuf.dqb_curinodes = fup->fu_curinodes;
dqbuf.dqb_curblocks = fup->fu_curblocks;
offset = (off_t)fup->fu_id * sizeof(struct dqblk);
- if (fseek(qfo, offset, SEEK_SET) < 0) {
+ if (fseeko(qfo, offset, SEEK_SET) < 0) {
warn("%s: seek failed", quotafile);
return(1);
}
OpenPOWER on IntegriCloud