(putpwent): Fix typos.

This commit is contained in:
Ulrich Drepper 1998-08-17 10:08:24 +00:00
parent f189f7b477
commit a8d1b73199

View File

@ -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);