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:
parent
c7a8139540
commit
2768ae50dd
@ -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.
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user