mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
(putpwent): Fix typos.
This commit is contained in:
parent
f189f7b477
commit
a8d1b73199
@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */
|
||||
#include <stdio.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#define _S(x) x ? x : ""
|
||||
#define _S(x) x ? x : ""
|
||||
|
||||
/* Write an entry to the given stream.
|
||||
This must know the format of the password file. */
|
||||
@ -36,7 +36,7 @@ putpwent (p, stream)
|
||||
}
|
||||
|
||||
if (fprintf (stream, "%s:%s:%u:%u:%s:%s:%s\n",
|
||||
p->pw_name, _(p->pw_passwd),
|
||||
p->pw_name, _S(p->pw_passwd),
|
||||
p->pw_uid, p->pw_gid,
|
||||
_S(p->pw_gecos), _S(p->pw_dir), _S(p->pw_shell)) < 0)
|
||||
return(-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user