diff options
Diffstat (limited to 'coreutils/id.c')
-rw-r--r-- | coreutils/id.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 33e06f4..43f403f 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -124,9 +124,7 @@ int id_main(int argc UNUSED_PARAM, char **argv) username = argv[optind]; if (username) { - struct passwd *p = getpwnam(username); - if (!p) - bb_error_msg_and_die("unknown user %s", username); + struct passwd *p = xgetpwnam(username); euid = ruid = p->pw_uid; egid = rgid = p->pw_gid; } else { |