diff -Naur pwauth-2.3.10.orig//config.h pwauth-2.3.10//config.h --- pwauth-2.3.10.orig//config.h 2011-10-05 15:01:12.000000000 +0200 +++ pwauth-2.3.10//config.h 2012-05-13 01:25:47.439359940 +0200 @@ -123,7 +123,7 @@ /* #define SHADOW_NONE /**/ /* #define SHADOW_BSD /* FreeBSD, NetBSD, OpenBSD, BSDI, OS X */ -#define SHADOW_SUN /* Linux, Solaris, IRIX */ +/*#define SHADOW_SUN /* Linux, Solaris, IRIX */ /* #define SHADOW_JFH /**/ /* #define SHADOW_MDW /**/ /* #define SHADOW_AIX /* AIX (see also AUTHENTICATE_AIX) */ @@ -278,7 +278,7 @@ * to change the uid list. */ -#define SERVER_UIDS 30 /* user "wwwrun" on the author's system */ +/*#define SERVER_UIDS 30 /* user "wwwrun" on the author's system */ /* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than @@ -290,7 +290,7 @@ * given value will be accepted). */ -#define MIN_UNIX_UID 500 /**/ +/*#define MIN_UNIX_UID 500 /**/ /* If IGNORE_CASE is defined, the login given is checked in two different @@ -319,7 +319,7 @@ * SLEEP_LOCK. SLEEP_TIME defaults to 2 seconds if not defined. */ -#define SLEEP_LOCK "/var/run/pwauth.lock" +#define SLEEP_LOCK "/var/lock/pwauth" /* If ENV_METHOD is defined, pwauth expects mod_auth_external to be configured diff -Naur pwauth-2.3.10.orig//main.c pwauth-2.3.10//main.c --- pwauth-2.3.10.orig//main.c 2009-06-11 15:47:10.000000000 +0200 +++ pwauth-2.3.10//main.c 2012-05-13 01:24:48.698777146 +0200 @@ -50,7 +50,7 @@ char *login, *passwd; #else char login[BFSZ+1], passwd[BFSZ+1]; - char *c, *strchr(); + char *c; #endif int uid,i; int status; diff -Naur pwauth-2.3.10.orig//Makefile pwauth-2.3.10//Makefile --- pwauth-2.3.10.orig//Makefile 2011-10-05 15:45:04.000000000 +0200 +++ pwauth-2.3.10//Makefile 2012-05-13 01:25:13.379021988 +0200 @@ -6,9 +6,9 @@ # LOCALFLAGS= compiler flags. Usually -g, -O, and stuff like that. # Settings for author's system (Redhat 6.1) -CC=gcc -LIB= -lcrypt -LOCALFLAGS= -g +#CC=gcc +#LIB= -lcrypt +#LOCALFLAGS= -g # For PAM on Redhat Linux # LIB=-lpam -ldl @@ -25,16 +25,16 @@ .PHONY: clean distclean -CFLAGS= $(LOCALFLAGS) +#CFLAGS= $(LOCALFLAGS) pwauth: main.o auth_aix.o auth_bsd.o auth_hpux.o auth_mdw.o auth_openbsd.o \ auth_pam.o auth_sun.o fail_log.o lastlog.o nologin.o snooze.o $(CC) -o pwauth $(CFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \ auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \ - lastlog.o nologin.o snooze.o $(LIB) + lastlog.o nologin.o snooze.o $(LDFLAGS) checkfaillog: checkfaillog.o fail_check.o - $(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LIB) + $(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LDFLAGS) main.o: main.c config.h pwauth.h fail_log.h auth_aix.o: auth_aix.c config.h pwauth.h