Subject: CVS commit: src/usr.sbin/user
To: None <source-changes@NetBSD.org>
From: Pavel Cahyna <pavel@netbsd.org>
List: source-changes
Date: 09/30/2006 10:44:56
Module Name:	src
Committed By:	pavel
Date:		Sat Sep 30 10:44:56 UTC 2006

Modified Files:
	src/usr.sbin/user: user.c

Log Message:
in userinfo, initialize buf (the buffer which will hold group names)
to be a null-terminated string. Otherwise, if the user is not a member
of any secondary groups, buf is completely uninitialized and userinfo
adds garbage to the list of groups printed.


To generate a diff of this commit:
cvs rdiff -r1.111 -r1.112 src/usr.sbin/user/user.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.