diff options
author | Dmitry <golubovsky@gmail.com> | 2012-08-10 22:50:26 -0400 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-08-11 22:16:11 +0200 |
commit | 04be7f0f8ca100afaf06b264332bc2cd61fbb3d0 (patch) | |
tree | f83a44f990c174c72c99060be078996b1a43f452 /package/linux-pam/linux-pam-time.patch | |
parent | 80b43964d01d5c84f66497d6295d786ff925c7de (diff) | |
download | buildroot-novena-04be7f0f8ca100afaf06b264332bc2cd61fbb3d0.tar.gz buildroot-novena-04be7f0f8ca100afaf06b264332bc2cd61fbb3d0.zip |
Add package linux-pam
Signed-off-by: Dmitry <golubovsky@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linux-pam/linux-pam-time.patch')
-rw-r--r-- | package/linux-pam/linux-pam-time.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/linux-pam/linux-pam-time.patch b/package/linux-pam/linux-pam-time.patch new file mode 100644 index 000000000..58d7c9f02 --- /dev/null +++ b/package/linux-pam/linux-pam-time.patch @@ -0,0 +1,26 @@ +Conditionally compile per innetgr availability + +innetgr is not available/functional in uclibc, provide conditions for compilation. + +Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com> + +Index: linux-pam-1.1.4/modules/pam_time/pam_time.c +============================================================================ +--- linux-pam-1.1.4/modules/pam_time/pam_time.c 2011-06-21 05:04:56.000000000 -0400 ++++ linux-pam-1.1.4/modules/pam_time/pam_time.c 2012-08-09 21:02:29.000000000 -0400 +@@ -554,8 +554,14 @@ + continue; + } + /* If buffer starts with @, we are using netgroups */ +- if (buffer[0] == '@') ++ if (buffer[0] == '@') { ++#ifdef HAVE_INNETGR + good &= innetgr (&buffer[1], NULL, user, NULL); ++#else ++ good = 0; ++ pam_syslog (pamh, LOG_ERR, "pam_time does not have netgroup support"); ++#endif /* HAVE_INNETGR */ ++ } + else + good &= logic_field(pamh, user, buffer, count, is_same); + D(("with user: %s", good ? "passes":"fails" )); |