aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/quotacheck.c
diff options
context:
space:
mode:
authorMike Pritchard <mpp@FreeBSD.org>2007-01-23 02:13:00 +0000
committerMike Pritchard <mpp@FreeBSD.org>2007-01-23 02:13:00 +0000
commit37675524540b859350fd958484929e6fbd13574e (patch)
treec495778c43c205a381ca211066e8736c878c8fdf /sbin/quotacheck/quotacheck.c
parentb32c2af199202ef97a3addfd3c985d2ab4e2833f (diff)
downloadsrc-37675524540b859350fd958484929e6fbd13574e.tar.gz
src-37675524540b859350fd958484929e6fbd13574e.zip
Use fseeko to seek in the file, instead of fseek to prevent seek
errors for extremely large uids (e.g. in the billions range).
Notes
Notes: svn path=/head/; revision=166180
Diffstat (limited to 'sbin/quotacheck/quotacheck.c')
-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 e4c7c61525a3..deaacae7cba3 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);
}