mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Update.
* grp/putgrent.c (putgrent): Don't insert extra colon. Patch by Michael Schaefer <michael.schaefer@dlr.de>.
This commit is contained in:
parent
4caef86ca6
commit
8ba3c7d939
@ -1,5 +1,8 @@
|
|||||||
1999-01-23 Ulrich Drepper <drepper@cygnus.com>
|
1999-01-23 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* grp/putgrent.c (putgrent): Don't insert extra colon.
|
||||||
|
Patch by Michael Schaefer <michael.schaefer@dlr.de>.
|
||||||
|
|
||||||
* nss/nss_files/files-XXX.c (internal_getent): Make sure the buffer has
|
* nss/nss_files/files-XXX.c (internal_getent): Make sure the buffer has
|
||||||
at least two bytes (not one). Correct buflen parameter type.
|
at least two bytes (not one). Correct buflen parameter type.
|
||||||
* nss/nss_files/files-alias.c (get_next_alias): Make sure buffer
|
* nss/nss_files/files-alias.c (get_next_alias): Make sure buffer
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1992, 1996, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1992, 1996, 1998, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -54,7 +54,7 @@ putgrent (gr, stream)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0 ; gr->gr_mem[i] != NULL; i++)
|
for (i = 0 ; gr->gr_mem[i] != NULL; i++)
|
||||||
if (fprintf (stream, "%c%s", i == 0 ? ':' : ',', gr->gr_mem[i]) < 0)
|
if (fprintf (stream, i == 0 ? "%s" : ",%s", gr->gr_mem[i]) < 0)
|
||||||
{
|
{
|
||||||
/* What else can we do? */
|
/* What else can we do? */
|
||||||
funlockfile (stream);
|
funlockfile (stream);
|
||||||
|
Loading…
Reference in New Issue
Block a user