aboutsummaryrefslogtreecommitdiffstats
path: root/net/gopher
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-05-12 10:37:58 +0800
committerasami <asami@FreeBSD.org>1995-05-12 10:37:58 +0800
commitc296b8cac1cba393a7e5e75b19ee6dd787023439 (patch)
tree69c07338d4bd1dfe25b4f1d5fe908ca0ba0706c7 /net/gopher
parent585d08d84402436f05031ba7d2424f0870f2f302 (diff)
downloadfreebsd-ports-gnome-c296b8cac1cba393a7e5e75b19ee6dd787023439.tar.gz
freebsd-ports-gnome-c296b8cac1cba393a7e5e75b19ee6dd787023439.tar.zst
freebsd-ports-gnome-c296b8cac1cba393a7e5e75b19ee6dd787023439.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.
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);