aboutsummaryrefslogtreecommitdiff
path: root/net/gopher
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-05-12 02:37:58 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-05-12 02:37:58 +0000
commit022575e10cf64afdc0adee63d289d45227bae5e7 (patch)
tree8e28e1fdf48794df90135e56503d13eb70d3d669 /net/gopher
parentdb7b9844e54e88caf51361bc53436df3cffc924d (diff)
downloadports-022575e10cf64afdc0adee63d289d45227bae5e7.tar.gz
ports-022575e10cf64afdc0adee63d289d45227bae5e7.zip
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.
Notes
Notes: svn path=/head/; revision=1680
Diffstat (limited to 'net/gopher')
-rw-r--r--net/gopher/files/patch-ab26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/gopher/files/patch-ab b/net/gopher/files/patch-ab
new file mode 100644
index 000000000000..49f0f6904de2
--- /dev/null
+++ b/net/gopher/files/patch-ab
@@ -0,0 +1,26 @@
+--- ./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);