* uinfo.cc (cygheap_pwdgrp::nss_init_line): Explicitely ignore a colon

as separator char.
This commit is contained in:
Corinna Vinschen 2014-02-12 13:01:10 +00:00
parent 6a7a80d83c
commit 5f51881a6d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-12 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (cygheap_pwdgrp::nss_init_line): Explicitely ignore a colon
as separator char.
2014-02-11 Christopher Faylor <me.cygwin2014@cgf.cx>
* winsup.h: Turn off previous workaround but leave a comment.

View File

@ -646,7 +646,7 @@ cygheap_pwdgrp::nss_init_line (const char *line)
{
c += 10;
c += strspn (c, " \t");
if ((unsigned char) *c <= 0x7f && strchr (" \t", c[1]))
if ((unsigned char) *c <= 0x7f && *c != ':' && strchr (" \t", c[1]))
separator[0] = (unsigned char) *c;
else
debug_printf ("Invalid nsswitch.conf content: %s", line);