]> granicus.if.org Git - linux-pam/commitdiff
Fix compile error
authorThorsten Kukuk <kukuk@thkukuk.de>
Fri, 30 Aug 2013 12:46:47 +0000 (14:46 +0200)
committerThorsten Kukuk <kukuk@thkukuk.de>
Fri, 30 Aug 2013 12:46:47 +0000 (14:46 +0200)
* modules/pam_unix/pam_unix_acct.c: fix last change

modules/pam_unix/pam_unix_acct.c

index 7f8250caae01d2293a5dcd320d1e429d8958e957..865dc2903ac09d90269becaa52479439d150b8a9 100644 (file)
@@ -143,7 +143,7 @@ int _unix_run_verify_binary(pam_handle_t *pamh, unsigned int ctrl,
       char buf[32];
       int rc=0;
       /* wait for helper to complete: */
-      while ((rc=waitpid(child, &retval, 0) < 0 && errno == EINTR);
+      while ((rc=waitpid(child, &retval, 0)) < 0 && errno == EINTR);
       if (rc<0) {
        pam_syslog(pamh, LOG_ERR, "unix_chkpwd waitpid returned %d: %m", rc);
        retval = PAM_AUTH_ERR;