libs/libpam: make the ruserok fix uclibc depended
authorAlexandros C. Couloumbis <alex@ozo.com>
Sat, 1 Oct 2011 10:55:47 +0000 (10:55 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Sat, 1 Oct 2011 10:55:47 +0000 (10:55 +0000)
SVN-Revision: 28345

libs/libpam/patches/005-fix_ruserok.patch

index 1abd2d160e87ede7ae128ebb58e81fb0d3cd8626..1f0f4633719b2b6f90396574631c243fc348bc3f 100644 (file)
@@ -1,20 +1,15 @@
 --- a/modules/pam_rhosts/pam_rhosts.c
 +++ b/modules/pam_rhosts/pam_rhosts.c
-@@ -34,8 +34,10 @@
- #include <pwd.h>
- #include <netdb.h>
-+#include <stdio.h>
- #include <string.h>
- #include <syslog.h>
-+#include <sys/stat.h>
- #define PAM_SM_AUTH  /* only defines this management group */
-@@ -43,6 +45,353 @@
+@@ -43,6 +43,361 @@
  #include <security/pam_modutil.h>
  #include <security/pam_ext.h>
  
++#ifdef __UCLIBC__
++
++#include <stdio.h>
++#include <sys/stat.h>
++
++
 +int  __check_rhosts_file = 1;
 +
 +/* Extremely paranoid file open function. */
 +      }
 +      return -1;
 +}
++
++#endif /* __UCLIBC__ */
 +
  PAM_EXTERN
  int pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc,