From: Lennart Poettering Date: Thu, 30 Jun 2011 02:15:53 +0000 (+0200) Subject: execute: fix PAM error checking X-Git-Tag: v30~85 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbf31dfe3cb2f9619df28258208eba36922e9d3;p=systemd execute: fix PAM error checking --- diff --git a/src/execute.c b/src/execute.c index c69442d0..d297e0a9 100644 --- a/src/execute.c +++ b/src/execute.c @@ -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; }