summaryrefslogtreecommitdiff
path: root/package/pam/patches/patch-modules_pam_time_pam_time_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-21 21:37:59 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-21 21:37:59 +0100
commitca463b87887d8151b83d222dc35d461991c1dd63 (patch)
tree5fd14a2e1f57e17214ee81e47c74bd4e4115e104 /package/pam/patches/patch-modules_pam_time_pam_time_c
parent414cf52c44c7caf09565c9286b9326ac8ac63428 (diff)
another musl fix round
Diffstat (limited to 'package/pam/patches/patch-modules_pam_time_pam_time_c')
-rw-r--r--package/pam/patches/patch-modules_pam_time_pam_time_c15
1 files changed, 8 insertions, 7 deletions
diff --git a/package/pam/patches/patch-modules_pam_time_pam_time_c b/package/pam/patches/patch-modules_pam_time_pam_time_c
index e44b2f489..b8670e562 100644
--- a/package/pam/patches/patch-modules_pam_time_pam_time_c
+++ b/package/pam/patches/patch-modules_pam_time_pam_time_c
@@ -1,13 +1,14 @@
---- Linux-PAM-1.1.4.orig/modules/pam_time/pam_time.c 2011-06-21 11:04:56.000000000 +0200
-+++ Linux-PAM-1.1.4/modules/pam_time/pam_time.c 2012-07-31 12:02:24.000000000 +0200
-@@ -555,7 +555,9 @@ check_account(pam_handle_t *pamh, const
+--- Linux-PAM-1.1.8.orig/modules/pam_time/pam_time.c 2013-06-18 16:11:21.000000000 +0200
++++ Linux-PAM-1.1.8/modules/pam_time/pam_time.c 2013-12-21 18:30:19.000000000 +0100
+@@ -554,9 +554,11 @@ check_account(pam_handle_t *pamh, const
+ continue;
}
/* If buffer starts with @, we are using netgroups */
++#ifdef HAVE_INNETGR
if (buffer[0] == '@')
-- good &= innetgr (&buffer[1], NULL, user, NULL);
-+ //good &= innetgr (&buffer[1], NULL, user, NULL);
-+ pam_syslog(pamh, LOG_ERR,
-+ "%s: no netgroup support in C library", PAM_TIME_CONF);
+ good &= innetgr (&buffer[1], NULL, user, NULL);
else
++#endif
good &= logic_field(pamh, user, buffer, count, is_same);
D(("with user: %s", good ? "passes":"fails" ));
+