Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
pwauth
> pwauth-2.3.8_makeitbuild.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pwauth-2.3.8_makeitbuild.patch of Package pwauth
Index: main.c =================================================================== --- main.c.orig +++ main.c @@ -44,13 +44,13 @@ int server_uids[]= {SERVER_UIDS, 0}; #endif -main(int argc, char **argv) +int main(int argc, char **argv) { #ifdef ENV_METHOD char *login, *passwd; #else char login[BFSZ+1], passwd[BFSZ+1]; - char *c, *strchr(); + char *c; /* *strchr(); */ #endif int uid,i; int status; Index: snooze.c =================================================================== --- snooze.c.orig +++ snooze.c @@ -39,7 +39,7 @@ * sleep time, if other pwauth processes are in sleeps. */ -snooze(int seconds) +void snooze(int seconds) { #ifdef SLEEP_LOCK int slfd; Index: nologin.c =================================================================== --- nologin.c.orig +++ nologin.c @@ -38,7 +38,7 @@ * uid is below MIN_NOLOGIN_UID. */ -check_nologin() +int check_nologin() { /* Return true if the file does not exist (the access() function returns * true if the file doesn't exist - pretty dumb, eh?) */ Index: pwauth.h =================================================================== --- pwauth.h.orig +++ pwauth.h @@ -37,6 +37,7 @@ #include <string.h> #include <fcntl.h> #include <errno.h> +#include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> @@ -127,3 +128,9 @@ extern int haveuid; #ifndef BFSZ # define BFSZ 1024 #endif + +/* prototypes for the internal functions */ +int check_auth(char *login, char *passwd); +int check_nologin(); +void lastlog(); +void snooze(int seconds);