From 2dbe60a5c8d806758609cc499ddbd68437f1fbcc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 13 Oct 2011 21:55:56 +0200 Subject: make it for uClibc usable --- package/pam/patches/patch-modules_pam_time_pam_time_c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/pam/patches/patch-modules_pam_time_pam_time_c (limited to 'package/pam/patches/patch-modules_pam_time_pam_time_c') diff --git a/package/pam/patches/patch-modules_pam_time_pam_time_c b/package/pam/patches/patch-modules_pam_time_pam_time_c new file mode 100644 index 000000000..e57094beb --- /dev/null +++ b/package/pam/patches/patch-modules_pam_time_pam_time_c @@ -0,0 +1,13 @@ +--- 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 2011-10-12 14:43:20.673559001 +0200 +@@ -555,7 +555,9 @@ check_account(pam_handle_t *pamh, const + } + /* If buffer starts with @, we are using netgroups */ + 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); + else + good &= logic_field(pamh, user, buffer, count, is_same); + D(("with user: %s", good ? "passes":"fails" )); -- cgit v1.2.3