1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/net/gopher/files/patch-ab
Steve Price 9d4e6e7aaa Update to version 2.3.
PR:		7166
Submitted by:	Pedro Giffuni <giffunip@asme.org>
1998-07-05 23:17:32 +00:00

34 lines
814 B
Plaintext

*** gopherd/AUTH.c.orig Tue Apr 29 12:28:14 1997
--- gopherd/AUTH.c Tue Apr 29 12:33:45 1997
***************
*** 259,273 ****
--- 259,276 ----
return(AUTHRES_SYSERR);
}
+ #ifndef __FreeBSD__
if (fgetpwent(ourpasswd) == NULL) {
Debugmsg("fgetpwent failed...");
return(AUTHRES_SYSERR);
}
+ #endif
fseek(ourpasswd, 0L,SEEK_SET);
/** Mimic getpwnam, sigh why isn't setpwfile() everywhere....**/
+ #ifndef __FreeBSD__
while ((pw = fgetpwent(ourpasswd)) != NULL) {
if (strcmp(pw->pw_name, username) == 0) {
pwcheck = AUTHunix_checkuser(pw, password);
***************
*** 291,296 ****
--- 294,300 ----
return(pwcheck);
}
}
+ #endif
return(AUTHRES_NOUSER);
#else
return(AUTHRES_SYSERR);