1 Conditionally compile per innetgr availability
3 innetgr 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_succeed_if/pam_succeed_if.c
8 ============================================================================
9 --- linux-pam-1.1.4/modules/pam_succeed_if/pam_succeed_if.c 2011-06-21 05:04:56.000000000 -0400
10 +++ linux-pam-1.1.4/modules/pam_succeed_if/pam_succeed_if.c 2012-08-09 21:05:02.000000000 -0400
13 evaluate_innetgr(const char *host, const char *user, const char *group)
16 if (innetgr(group, host, user, NULL) == 1)
18 +#endif /* HAVE_INNETGR */
21 /* Return PAM_SUCCESS if the (host,user) is NOT in the netgroup. */
23 evaluate_notinnetgr(const char *host, const char *user, const char *group)
26 if (innetgr(group, host, user, NULL) == 0)
28 +#endif /* HAVE_INNETGR */