Yipe. uid and gid were reversed.

-Erik
This commit is contained in:
Eric Andersen 2002-09-10 05:23:29 +00:00
parent 2bec97c076
commit 2a1eb31f18

View File

@ -31,7 +31,7 @@ int putpwent(const struct passwd *passwd, FILE * f)
return -1;
}
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;