[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Patches for non-Linux build



Greeings PAM-developers.  A few small diffs that you might like
to consider in the name of portability.  I am currently working
(as you may be able to tell 8) on porting the PAM library and
modules to the *BSD environment.  I hope shortly to be ready
to release a set of Makefiles which allow the tree to be built
on BSD systems.

--
Mike Smith  *BSD hack  Unix hardware collector
The question "why are the fundamental laws of nature mathematical"
invites the trivial response "because we define as fundamental those
laws which are mathematical".  Paul Davies, _The_Mind_of_God_
diff -cr ../Linux-PAM-0.58.orig/modules/pam_lastlog/pam_lastlog.c modules/pam_la
stlog/pam_lastlog.c
*** ../Linux-PAM-0.58.orig/modules/pam_lastlog/pam_lastlog.c	Fri May 23 15:35:45
 1997
--- modules/pam_lastlog/pam_lastlog.c	Fri May 23 17:46:58 1997
***************
*** 22,28 ****
   */
  
  #include <fcntl.h>
! #include <lastlog.h>
  #include <pwd.h>
  #include <stdlib.h>
  #include <stdarg.h>
--- 22,33 ----
   */
  
  #include <fcntl.h>
! #include <time.h>
! #ifdef HAVE_UTMP_H
! # include <utmp.h>
! #else
! # include <lastlog.h>
! #endif
  #include <pwd.h>
  #include <stdlib.h>
  #include <stdarg.h>
diff -cr ../Linux-PAM-0.58.orig/modules/pam_rhosts/pam_rhosts_auth.c modules/pam
_rhosts/pam_rhosts_auth.c
*** ../Linux-PAM-0.58.orig/modules/pam_rhosts/pam_rhosts_auth.c	Fri May 23 15:35
:40 1997
--- modules/pam_rhosts/pam_rhosts_auth.c	Fri May 23 17:48:10 1997
***************
*** 396,402 ****
   */
  
  static int
! iruserok(pam_handle_t *pamh,
  	 struct _options *opts, u_long raddr, int superuser,
  	 const char *ruser, const char *luser, const char *rhost)
  {
--- 396,402 ----
   */
  
  static int
! pam_iruserok(pam_handle_t *pamh,
  	 struct _options *opts, u_long raddr, int superuser,
  	 const char *ruser, const char *luser, const char *rhost)
  {
***************
*** 536,542 ****
  	    memcpy (&addr, *ap, sizeof(addr));
  
  	    /* check user on remote host */
! 	    if (iruserok(pamh, opts, addr, superuser, ruser, luser, rhost)
  		== 0) {
  		answer = 0;                                /* success */
  		break;
--- 536,542 ----
  	    memcpy (&addr, *ap, sizeof(addr));
  
  	    /* check user on remote host */
! 	    if (pam_iruserok(pamh, opts, addr, superuser, ruser, luser, rhost)
  		== 0) {
  		answer = 0;                                /* success */
  		break;
diff -cr ../Linux-PAM-0.58.orig/modules/pam_wheel/pam_wheel.c modules/pam_wheel/
pam_wheel.c
*** ../Linux-PAM-0.58.orig/modules/pam_wheel/pam_wheel.c	Fri May 23 15:35:40 199
7
--- modules/pam_wheel/pam_wheel.c	Fri May 23 17:57:15 1997
***************
*** 28,34 ****
  #include <syslog.h>
  #include <stdarg.h>
  #include <sys/types.h>
! #include <pwdb/pwdb_map.h>
  
  /*
   * here, we make a definition for the externally accessible function
--- 28,39 ----
  #include <syslog.h>
  #include <stdarg.h>
  #include <sys/types.h>
! #if defined(HAVE_PWD_H) && defined(HAVE_GRP_H)
! # include <pwd.h>
! # include <grp.h>
! #else
! # include <pwdb/pwdb_map.h>
! #endif
  
  /*
   * here, we make a definition for the externally accessible function

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []