Yipe. uid and gid were reversed.
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 10 Sep 2002 05:23:29 +0000 (05:23 +0000)
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 10 Sep 2002 05:23:29 +0000 (05:23 +0000)
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@5471 69ca8d6d-28ef-0310-b511-8ec308f3f277

libpwdgrp/putpwent.c

index de285eb..f6b3a25 100644 (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;