diff options
author | Tomas Mraz <tm@t8m.info> | 2006-06-27 08:38:14 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2006-06-27 08:38:14 +0000 |
commit | 50a06ececa941383813e06fd1c44b8e7284b0546 (patch) | |
tree | 563954ded4e59bbb4ba4a4c1e24fcde2480c97b1 /modules/pam_unix/pam_unix_acct.c | |
parent | fe4a8a522d92a343b0181b42a60af003157ebaae (diff) | |
download | pam-50a06ececa941383813e06fd1c44b8e7284b0546.tar.gz pam-50a06ececa941383813e06fd1c44b8e7284b0546.tar.bz2 pam-50a06ececa941383813e06fd1c44b8e7284b0546.zip |
Relevant BUGIDs:
Purpose of commit: bugfix
Commit summary:
---------------
* modules/pam_unix/pam_unix_acct.c (_unix_run_verify_binary):
signal() fails with SIG_ERR return
* modules/pam_unix/pam_unix_passwd.c(_unix_run_shadow_binary):
Likewise.
* modules/pam_unix/support.c(_unix_run_helper_binary):
Likewise.
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
-rw-r--r-- | modules/pam_unix/pam_unix_acct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c index 6894cd09..cb2550df 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -170,7 +170,7 @@ struct spwd *_unix_run_verify_binary(pam_handle_t *pamh, unsigned int ctrl, cons } close(fds[0]); } - if (sighandler != NULL) { + if (sighandler != SIG_ERR) { (void) signal(SIGCHLD, sighandler); /* restore old signal handler */ } D(("Returning %d",retval)); |