• 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-06-time.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_time/pam_time.c
8
============================================================================
9
--- linux-pam-1.1.4/modules/pam_time/pam_time.c 2011-06-21 05:04:56.000000000 -0400
10
+++ linux-pam-1.1.4/modules/pam_time/pam_time.c 2012-08-09 21:02:29.000000000 -0400
11
@@ -554,8 +554,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_time does not have netgroup support");
22
+#endif /* HAVE_INNETGR */
23
+     }
24
      else
25
        good &= logic_field(pamh, user, buffer, count, is_same);
26
      D(("with user: %s", good ? "passes":"fails" ));
  • 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.