]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - repo_shell.c
change_user() correctly reports user on error
[repo_shell.git] / repo_shell.c
index 2785b848a85f89af063f280c57a9003f8c7ac928..f6ef69fe6211438fdac72dc388422419a17b24ab 100644 (file)
@@ -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);
 }