1 Conditionally compile per ruserok availability
3 ruserok is not available/functional in uclibc, provide conditions for compilation.
5 Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>
7 Index: linux-pam-1.1.4/modules/pam_rhosts/pam_rhosts.c
8 ============================================================================
9 --- linux-pam-1.1.4/modules/pam_rhosts/pam_rhosts.c 2011-06-21 05:04:56.000000000 -0400
10 +++ linux-pam-1.1.4/modules/pam_rhosts/pam_rhosts.c 2012-08-09 21:19:34.000000000 -0400
12 #ifdef HAVE_RUSEROK_AF
13 retval = ruserok_af (rhost, as_root, ruser, luser, PF_UNSPEC);
16 retval = ruserok (rhost, as_root, ruser, luser);
20 + #endif /* HAVE_RUSEROK */
21 +#endif /*HAVE_RUSEROK_AF */
23 if (!opt_silent || opt_debug)
24 pam_syslog(pamh, LOG_WARNING, "denied access to %s@%s as %s",