1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/gopher/files/patch-ab
Satoshi Asami 022575e10c Submitted by: Marc Ramirez <mrami@mramirez.sy.yale.edu>
gopherd/AUTH.c uses fgetpwent, which doesn't exist on FreeBSD.  My
solution was simply to #ifdef it out.
1995-05-12 02:37:58 +00:00

27 lines
665 B
Plaintext

--- ./gopherd/AUTH.c.org Mon Feb 6 13:25:13 1995
+++ ./gopherd/AUTH.c Thu May 11 19:26:05 1995
@@ -216,19 +216,23 @@
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)
return(AUTHunix_checkuser(pw, password));
}
+#endif
return(AUTHRES_NOUSER);
#else
return(AUTHRES_SYSERR);