summaryrefslogtreecommitdiff
path: root/src/pwd/getpwnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pwd/getpwnam.c')
-rw-r--r--src/pwd/getpwnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pwd/getpwnam.c b/src/pwd/getpwnam.c
index f5b1b979..6760b6f8 100644
--- a/src/pwd/getpwnam.c
+++ b/src/pwd/getpwnam.c
@@ -75,7 +75,7 @@ struct passwd * getpwnam(const char * name)
}
pwd.pw_name = user;
- pwd.pw_uid = strtoul(gid, NULL, 10);
+ pwd.pw_uid = strtoul(uid, NULL, 10);
pwd.pw_gid = strtoul(gid, NULL, 10);
pwd.pw_dir = home;
pwd.pw_shell = shell;