Use correction function name in error message

This commit is contained in:
sin 2014-06-03 12:27:38 +01:00
parent b8dbf05ce7
commit 323f6be8ef
1 changed files with 1 additions and 1 deletions

View File

@ -121,6 +121,6 @@ dologin(struct passwd *pw, int preserve)
if (chdir(pw->pw_dir) < 0)
eprintf("chdir %s:", pw->pw_dir);
execlp(pw->pw_shell, pw->pw_shell, "-l", NULL);
weprintf("execvp %s:", pw->pw_shell);
weprintf("execlp %s:", pw->pw_shell);
return (errno == ENOENT) ? 127 : 126;
}