mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
execute: fix PAM error checking
This commit is contained in:
parent
3dead8d925
commit
7fbf31dfe3
@ -1269,7 +1269,7 @@ int exec_spawn(ExecCommand *command,
|
||||
|
||||
#ifdef HAVE_PAM
|
||||
if (context->pam_name && username) {
|
||||
if (setup_pam(context->pam_name, username, context->tty_path, &pam_env, fds, n_fds) < 0) {
|
||||
if (setup_pam(context->pam_name, username, context->tty_path, &pam_env, fds, n_fds) != 0) {
|
||||
r = EXIT_PAM;
|
||||
goto fail_child;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user