diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-06-17 18:19:23 +0800 |
---|---|---|
committer | Tomáš Mráz <t8m@users.noreply.github.com> | 2019-01-04 12:21:34 +0100 |
commit | 1d1d3b59af50c40efcc74f9c3f37b446a921e83e (patch) | |
tree | ccbfd1a2cbc3710b11a93942c136e28c748bfd2b /modules/pam_rhosts | |
parent | d57ab22133654033ee1da89f128a81572d320985 (diff) | |
download | pam-1d1d3b59af50c40efcc74f9c3f37b446a921e83e.tar.gz pam-1d1d3b59af50c40efcc74f9c3f37b446a921e83e.tar.bz2 pam-1d1d3b59af50c40efcc74f9c3f37b446a921e83e.zip |
build: ignore pam_rhosts if neither ruserok nor ruserok_af is available.
* configure.ac: check for ruserok and ruserok_af
* modules/Makefile.am: ignore pam_rhosts/ if it's disabled
* modules/pam_rhosts/pam_rhosts.c: include stdlib.h for malloc and free
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'modules/pam_rhosts')
-rw-r--r-- | modules/pam_rhosts/pam_rhosts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/pam_rhosts/pam_rhosts.c b/modules/pam_rhosts/pam_rhosts.c index ed98d630..60c9e854 100644 --- a/modules/pam_rhosts/pam_rhosts.c +++ b/modules/pam_rhosts/pam_rhosts.c @@ -35,6 +35,7 @@ #include <pwd.h> #include <netdb.h> #include <string.h> +#include <stdlib.h> #include <syslog.h> #define PAM_SM_AUTH /* only defines this management group */ |