Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/bouyer-quota2]: src/sbin/fsck_ffs Fix cut-n-paste: compare gid against g...



details:   https://anonhg.NetBSD.org/src/rev/84e61f082fb1
branches:  bouyer-quota2
changeset: 761090:84e61f082fb1
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Jan 30 14:26:31 2011 +0000

description:
Fix cut-n-paste: compare gid against gid, not uid.

diffstat:

 sbin/fsck_ffs/utilities.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cfdc475b983c -r 84e61f082fb1 sbin/fsck_ffs/utilities.c
--- a/sbin/fsck_ffs/utilities.c Sun Jan 30 13:23:26 2011 +0000
+++ b/sbin/fsck_ffs/utilities.c Sun Jan 30 14:26:31 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index