aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/id.c b/toys/posix/id.c
index ac29990b..6f71891b 100644
--- a/toys/posix/id.c
+++ b/toys/posix/id.c
@@ -98,7 +98,7 @@ static void do_id(char *username)
uid = atolx_range(username, 0, INT_MAX);
if ((pw = getpwuid(uid))) username = pw->pw_name;
}
- if (!pw) perror_exit("no such user '%s'", username);
+ if (!pw) error_exit("no such user '%s'", username);
uid = euid = pw->pw_uid;
gid = egid = pw->pw_gid;
if (TT.is_groups) printf("%s : ", pw->pw_name);