]> err.no Git - systemd/commitdiff
execute: fix PAM error checking
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Jun 2011 02:15:53 +0000 (04:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 30 Jun 2011 02:15:53 +0000 (04:15 +0200)
src/execute.c

index c69442d0ffeeda1365db6ad07c71e300140c4dd1..d297e0a9e65c2d23096fafa0dee504009defb059 100644 (file)
@@ -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;
                         }