From 93cdce827056ae5bcd6cbe12f431026d606a4db5 Mon Sep 17 00:00:00 2001 From: acoul Date: Sat, 1 Oct 2011 10:55:47 +0000 Subject: [PATCH] libs/libpam: make the ruserok fix uclibc depended git-svn-id: svn://svn.openwrt.org/openwrt/packages@28345 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libpam/patches/005-fix_ruserok.patch | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/libs/libpam/patches/005-fix_ruserok.patch b/libs/libpam/patches/005-fix_ruserok.patch index 1abd2d160..1f0f46337 100644 --- a/libs/libpam/patches/005-fix_ruserok.patch +++ b/libs/libpam/patches/005-fix_ruserok.patch @@ -1,20 +1,15 @@ --- a/modules/pam_rhosts/pam_rhosts.c +++ b/modules/pam_rhosts/pam_rhosts.c -@@ -34,8 +34,10 @@ - - #include - #include -+#include - #include - #include -+#include - - #define PAM_SM_AUTH /* only defines this management group */ - -@@ -43,6 +45,353 @@ +@@ -43,6 +43,361 @@ #include #include ++#ifdef __UCLIBC__ ++ ++#include ++#include ++ ++ +int __check_rhosts_file = 1; + +/* Extremely paranoid file open function. */ @@ -362,6 +357,8 @@ + return -1; +} + ++#endif /* __UCLIBC__ */ ++ PAM_EXTERN int pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv) -- 2.11.0