diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-12-16 21:22:54 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-12-16 21:22:54 +0000 |
commit | f1f1110d953f09c74f1fb075a2148face21acec4 (patch) | |
tree | 609ad3c099765cf903861e3d2412366da62bece1 | |
parent | ec38494e3ad6f3c1dd69e191cf19f8015a2cf7b3 (diff) |
fix ffs2 case: fs_sblockloc's unit is disk sectors, not fragments;
ok millert@
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 86dbadc2c43..dfa0c0a59a9 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quotacheck.c,v 1.23 2007/07/11 13:40:24 millert Exp $ */ +/* $OpenBSD: quotacheck.c,v 1.24 2007/12/16 21:22:53 otto Exp $ */ /* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)quotacheck.c 8.3 (Berkeley) 1/29/94"; #else -static char rcsid[] = "$OpenBSD: quotacheck.c,v 1.23 2007/07/11 13:40:24 millert Exp $"; +static char rcsid[] = "$OpenBSD: quotacheck.c,v 1.24 2007/12/16 21:22:53 otto Exp $"; #endif #endif /* not lint */ @@ -291,8 +291,7 @@ chkquota(const char *vfstype, const char *fsname, const char *mntpt, bread(sblock_try[i], (char *)&sblock, (long)SBLOCKSIZE); if ((sblock.fs_magic == FS_UFS1_MAGIC || (sblock.fs_magic == FS_UFS2_MAGIC && - sblock.fs_sblockloc == - numfrags(&sblock, sblock_try[i]))) && + sblock.fs_sblockloc == sblock_try[i])) && sblock.fs_bsize <= MAXBSIZE && sblock.fs_bsize >= sizeof(struct fs)) break; |