Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-09-10 09:23:29 +0400
committerEric Andersen <andersen@codepoet.org>2002-09-10 09:23:29 +0400
commit2a1eb31f18f5a185d43760bf504249a66a26fe4d (patch)
tree69bc495cf7c45f5daaa14d86f9aca5aa19459cbd /libpwdgrp
parent2bec97c076e7183b4ce4e5de3739299bbd3a06fa (diff)
Yipe. uid and gid were reversed.
-Erik
Diffstat (limited to 'libpwdgrp')
-rw-r--r--libpwdgrp/putpwent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/putpwent.c b/libpwdgrp/putpwent.c
index de285ebaf..f6b3a2577 100644
--- a/libpwdgrp/putpwent.c
+++ b/libpwdgrp/putpwent.c
@@ -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;