summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-30 04:15:53 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-30 04:15:53 +0200
commit7fbf31dfe3cb2f9619df28258208eba36922e9d3 (patch)
tree29668a317fe22c0211ebf0ace02ce390a92a348c
parent3dead8d925ea9db1fbd65b702b6b807e49ddeacf (diff)
execute: fix PAM error checking
-rw-r--r--src/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execute.c b/src/execute.c
index c69442d0ff..d297e0a9e6 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;
}