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_group/pam_group.c
8 ============================================================================
9 --- linux-pam-1.1.4/modules/pam_group/pam_group.c 2011-06-21 05:04:56.000000000 -0400
10 +++ linux-pam-1.1.4/modules/pam_group/pam_group.c 2012-08-09 21:35:06.000000000 -0400
14 /* If buffer starts with @, we are using netgroups */
15 - if (buffer[0] == '@')
16 + if (buffer[0] == '@') {
18 good &= innetgr (&buffer[1], NULL, user, NULL);
21 + pam_syslog (pamh, LOG_ERR, "pam_group does not have netgroup support");
22 +#endif /* HAVE_INNETGR */
24 /* otherwise, if the buffer starts with %, it's a UNIX group */
25 else if (buffer[0] == '%')
26 good &= pam_modutil_user_in_group_nam_nam(pamh, user, &buffer[1]);