2010-02-14 Michael Bunk <mb@computer-leipzig.com>

* NEWS, lib/gshadow.c: Fix parsing of gshadow entries.
This commit is contained in:
nekral-guest 2010-03-10 22:30:03 +00:00
parent 391a384715
commit 9866af3777
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-02-14 Michael Bunk <mb@computer-leipzig.com>
* NEWS, lib/gshadow.c: Fix parsing of gshadow entries.
2010-01-30 Paweł Hajdan, Jr. <phajdan.jr@gentoo.org> 2010-01-30 Paweł Hajdan, Jr. <phajdan.jr@gentoo.org>
* NEWS: Add support for TCB. * NEWS: Add support for TCB.

2
NEWS
View File

@ -15,6 +15,8 @@ shadow-4.1.4.2 -> shadow-4.1.4.3 UNRELEASED
sending a SIGTERM), and kill it only if it did not terminate by itself. sending a SIGTERM), and kill it only if it did not terminate by itself.
No delay will be enforced if the child cooperates. No delay will be enforced if the child cooperates.
* Default ENV_SUPATH is /sbin:/bin:/usr/sbin:/usr/bin * Default ENV_SUPATH is /sbin:/bin:/usr/sbin:/usr/bin
- newgrp, sg, groupmems
* Fix parsing of gshadow entries.
*** translation *** translation
* Updated Czech translation. * Updated Czech translation.

View File

@ -222,6 +222,7 @@ void endsgent (void)
if (NULL == buf) { if (NULL == buf) {
return NULL; return NULL;
} }
buflen = BUFSIZ;
} }
if (NULL == fp) { if (NULL == fp) {
@ -229,9 +230,9 @@ void endsgent (void)
} }
#ifdef USE_NIS #ifdef USE_NIS
while (fgetsx (buf, (int) sizeof buf, fp) == buf) while (fgetsx (buf, (int) buflen, fp) == buf)
#else #else
if (fgetsx (buf, (int) sizeof buf, fp) == buf) if (fgetsx (buf, (int) buflen, fp) == buf)
#endif #endif
{ {
while ( ((cp = strrchr (buf, '\n')) == NULL) while ( ((cp = strrchr (buf, '\n')) == NULL)