mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-22 23:17:28 +08:00
cygheap_pwdgrp: Handle invalid db_* entries correctly
If the first scheme in db_* was invalid, the code would think there were no schemes specified and replace the second scheme with NSS_SCHEME_DESC. Signed-off-by: David Macek <david.macek.0@gmail.com>
This commit is contained in:
parent
32c529deeb
commit
a4ee2c5550
@ -823,7 +823,10 @@ cygheap_pwdgrp::nss_init_line (const char *line)
|
|||||||
c, e - c);
|
c, e - c);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
debug_printf ("Invalid nsswitch.conf content: %s", line);
|
debug_printf ("Invalid nsswitch.conf content: %s", line);
|
||||||
|
--idx;
|
||||||
|
}
|
||||||
c += strcspn (c, " \t");
|
c += strcspn (c, " \t");
|
||||||
c += strspn (c, " \t");
|
c += strspn (c, " \t");
|
||||||
++idx;
|
++idx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user