Source-Changes-HG archive

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

[src/trunk]: src/lib/libp2k Report actual group array size instead of 0 (whic...



details:   https://anonhg.NetBSD.org/src/rev/4207aa7fd116
branches:  trunk
changeset: 749175:4207aa7fd116
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Nov 20 14:24:58 2009 +0000

description:
Report actual group array size instead of 0 (which always gives back 0 grousp).

diffstat:

 lib/libp2k/p2k.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1480ffb42f90 -r 4207aa7fd116 lib/libp2k/p2k.c
--- a/lib/libp2k/p2k.c  Fri Nov 20 14:23:54 2009 +0000
+++ b/lib/libp2k/p2k.c  Fri Nov 20 14:24:58 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: p2k.c,v 1.28 2009/11/20 14:11:38 pooka Exp $   */
+/*     $NetBSD: p2k.c,v 1.29 2009/11/20 14:24:58 pooka Exp $   */
 
 /*
  * Copyright (c) 2007, 2008, 2009  Antti Kantee.  All Rights Reserved.
@@ -102,7 +102,7 @@
        gid_t groups[NGROUPS];
        uid_t uid;
        gid_t gid;
-       short ngroups = 0;
+       short ngroups = __arraycount(groups);
 
        if (haswizard) {
                uid = wizarduid;



Home | Main Index | Thread Index | Old Index