Use correction function name in error message
This commit is contained in:
parent
b8dbf05ce7
commit
323f6be8ef
2
login.c
2
login.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user