• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/linux-pam/linux-pam-03-group.patch
Gustavo ZacariasGustavo Zacarias committed 17e761efc4516 Sep 2013
Raw file
Source viewDiff to previous
 
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]);
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.