The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / linux-pam / 0003-group.patch
1 Conditionally compile per innetgr availability
2
3 innetgr is not available/functional in uclibc, provide conditions for compilation.
4
5 Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>
6
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
11 @@ -655,8 +655,14 @@
12             continue;
13         }
14         /* If buffer starts with @, we are using netgroups */
15 -       if (buffer[0] == '@')
16 +       if (buffer[0] == '@') {
17 +#ifdef HAVE_INNETGR
18           good &= innetgr (&buffer[1], NULL, user, NULL);
19 +#else
20 +         good = 0;
21 +         pam_syslog (pamh, LOG_ERR, "pam_group does not have netgroup support");
22 +#endif  /* HAVE_INNETGR */
23 +       }
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]);