From: R. Steve McKown Date: Fri, 28 Sep 2012 17:53:12 +0000 (-0600) Subject: change_user() correctly reports user on error X-Git-Tag: 0.5~10 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=repo_shell.git;a=commitdiff_plain;h=b23a628665f06ad8954bb269d2552f63cb37dbac change_user() correctly reports user on error --- diff --git a/repo_shell.c b/repo_shell.c index 2785b84..f6ef69f 100644 --- a/repo_shell.c +++ b/repo_shell.c @@ -34,7 +34,7 @@ static void change_user(char *user) struct passwd *pw = getpwnam(user); if (!pw) - die("invalid user %s", pw->pw_name); + die("invalid user %s", user); setuid(pw->pw_uid); }