From f7edd11da97c5720590804f1642c4a7a8783436b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 10 Sep 2002 05:21:03 +0000 Subject: As noted by Bill Huang , the gid and uid were reversed in putpwent(). Oops. -Erik --- libc/pwd_grp/putpwent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/pwd_grp') diff --git a/libc/pwd_grp/putpwent.c b/libc/pwd_grp/putpwent.c index 84028523b..da575b490 100644 --- a/libc/pwd_grp/putpwent.c +++ b/libc/pwd_grp/putpwent.c @@ -30,9 +30,10 @@ int putpwent(const struct passwd *passwd, FILE * f) } if (fprintf (f, "%s:%s:%u:%u:%s:%s:%s\n", passwd->pw_name, passwd->pw_passwd, - passwd->pw_gid, passwd->pw_uid, passwd->pw_gecos, passwd->pw_dir, + passwd->pw_uid, passwd->pw_gid, passwd->pw_gecos, passwd->pw_dir, passwd->pw_shell) < 0) return -1; return 0; } + -- cgit v1.2.3