diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1995-05-12 02:37:58 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1995-05-12 02:37:58 +0000 |
commit | 022575e10cf64afdc0adee63d289d45227bae5e7 (patch) | |
tree | 8e28e1fdf48794df90135e56503d13eb70d3d669 /net/gopher | |
parent | db7b9844e54e88caf51361bc53436df3cffc924d (diff) | |
download | ports-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-ab | 26 |
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); |