Module Name: src Committed By: bouyer Date: Sun Jan 30 14:26:31 UTC 2011
Modified Files: src/sbin/fsck_ffs [bouyer-quota2]: utilities.c Log Message: Fix cut-n-paste: compare gid against gid, not uid. To generate a diff of this commit: cvs rdiff -u -r1.58.2.1 -r1.58.2.2 src/sbin/fsck_ffs/utilities.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/fsck_ffs/utilities.c diff -u src/sbin/fsck_ffs/utilities.c:1.58.2.1 src/sbin/fsck_ffs/utilities.c:1.58.2.2 --- src/sbin/fsck_ffs/utilities.c:1.58.2.1 Thu Jan 20 14:24:54 2011 +++ src/sbin/fsck_ffs/utilities.c Sun Jan 30 14:26:31 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: utilities.c,v 1.58.2.1 2011/01/20 14:24:54 bouyer Exp $ */ +/* $NetBSD: utilities.c,v 1.58.2.2 2011/01/30 14:26:31 bouyer Exp $ */ /* * Copyright (c) 1980, 1986, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95"; #else -__RCSID("$NetBSD: utilities.c,v 1.58.2.1 2011/01/20 14:24:54 bouyer Exp $"); +__RCSID("$NetBSD: utilities.c,v 1.58.2.2 2011/01/30 14:26:31 bouyer Exp $"); #endif #endif /* not lint */ @@ -786,7 +786,7 @@ uq_u = find_uquot(uquot_user_hash, uid, 1); uq_u->uq_b += bchange; uq_u->uq_i += ichange; - if (uq_g == NULL || uq_g->uq_uid != uid) + if (uq_g == NULL || uq_g->uq_uid != gid) uq_g = find_uquot(uquot_group_hash, gid, 1); uq_g->uq_b += bchange; uq_g->uq_i += ichange;