Module Name: src
Committed By: pooka
Date: Fri Nov 20 14:24:58 UTC 2009
Modified Files:
src/lib/libp2k: p2k.c
Log Message:
Report actual group array size instead of 0 (which always gives back 0 grousp).
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libp2k/p2k.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libp2k/p2k.c
diff -u src/lib/libp2k/p2k.c:1.28 src/lib/libp2k/p2k.c:1.29
--- src/lib/libp2k/p2k.c:1.28 Fri Nov 20 14:11:38 2009
+++ src/lib/libp2k/p2k.c Fri Nov 20 14:24:58 2009
@@ -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;