summaryrefslogtreecommitdiffstats
path: root/libc/pwd_grp
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-09-10 05:21:03 +0000
committerEric Andersen <andersen@codepoet.org>2002-09-10 05:21:03 +0000
commitf7edd11da97c5720590804f1642c4a7a8783436b (patch)
tree0ebb3ad5f62471365a21bf6228c78446b5499575 /libc/pwd_grp
parent6b664bc31290c6f33590e5935b1da25cf1361334 (diff)
downloaduClibc-alpine-f7edd11da97c5720590804f1642c4a7a8783436b.tar.bz2
uClibc-alpine-f7edd11da97c5720590804f1642c4a7a8783436b.tar.xz
As noted by Bill Huang <billhuang@redsonic.com>, the gid and uid
were reversed in putpwent(). Oops. -Erik
Diffstat (limited to 'libc/pwd_grp')
-rw-r--r--libc/pwd_grp/putpwent.c3
1 files changed, 2 insertions, 1 deletions
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;
}
+