reassign 336843 glibc thanks On Thu, Nov 03, 2005 at 09:11:15PM +0100, Marc Haber wrote: >On Tue, Nov 01, 2005 at 05:43:40PM +0100, Marc Haber wrote: >> If a line in /etc/group ends with a colon, adduser user group removes >> the last user listed in /etc/group:
>Actually, it's perl's fault: >$ grep '^wheel' /etc/group >wheel:x:104:mh,scyadmin: >$ perl -e 'foreach (split(/ /, >(getgrnam("wheel"))[3])) { print "$_\n"; };' >mh >scyadmin: >[12/[EMAIL PROTECTED]:~$ > >Judged that ":" is the field separator in /etc/group, and that >/etc/group might change its format to include more fields, and that a >colon is not a valid character in a user name (it would wreck havoc in >/etc/passwd), I would expect that perl would consider the ":" a >delimiter here and not return it as part of the group name. perl doesn't parse /etc/group directly, it just calls libc's getgrname, which returns a list as gr_mem (the last entry of which has a trailing colon in this case). --bod -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]