4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

* grp.cc (pwdgrp::read_group): Generate more speaking group name

if passwd gid exists under different gid in /etc/group.
This commit is contained in:
Corinna Vinschen 2008-10-09 11:52:54 +00:00
parent c7a8139540
commit 2768ae50dd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-10-09 Corinna Vinschen <corinna@vinschen.de>
* grp.cc (pwdgrp::read_group): Generate more speaking group name
if passwd gid exists under different gid in /etc/group.
2008-10-09 Corinna Vinschen <corinna@vinschen.de>
* path.cc (path_conv::is_binary): Always check for GetBinaryType.

View File

@ -84,7 +84,8 @@ pwdgrp::read_group ()
cygheap->user.groups.pgsid.string (strbuf);
if ((gr = internal_getgrsid (cygheap->user.groups.pgsid)))
strlcpy (group_name, gr->gr_name, sizeof (group_name));
snprintf (group_name, sizeof (group_name),
"passwd/group_GID_clash(%lu/%lu)", myself->gid, gr->gr_gid);
if (myself->uid == UNKNOWN_UID)
strcpy (group_name, "mkpasswd"); /* Feedback... */
snprintf (linebuf, sizeof (linebuf), "%s:%s:%lu:%s",