[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH][dev20] --disable-* nits
From: |
John Bley |
Subject: |
lynx-dev [PATCH][dev20] --disable-* nits |
Date: |
Fri, 19 Mar 1999 04:58:21 -0500 (EST) |
* --disable-news was also disabling ftp, --disable-finger without
--disable-gopher wasn't right (John Bley)
--
John Bley - address@hidden
Duke '99 - English/Computer Science
Since English is a mess, it maps well onto the problem space,
which is also a mess, which we call reality. - Larry Wall
diff -Burp lynx2-8-2/WWW/Library/Implementation/HTAccess.c
lynx2-8-2-patched/WWW/Library/Implementation/HTAccess.c
--- lynx2-8-2/WWW/Library/Implementation/HTAccess.c Wed Mar 17 22:17:11 1999
+++ lynx2-8-2-patched/WWW/Library/Implementation/HTAccess.c Fri Mar 19
04:47:33 1999
@@ -181,8 +181,8 @@ PRIVATE void HTAccessInit NOARGS /* Ca
HTRegisterProtocol(&HTTn3270);
HTRegisterProtocol(&HTRlogin);
#ifndef DECNET
-#ifndef DISABLE_NEWS
HTRegisterProtocol(&HTFTP);
+#ifndef DISABLE_NEWS
HTRegisterProtocol(&HTNews);
HTRegisterProtocol(&HTNNTP);
HTRegisterProtocol(&HTNewsPost);
diff -Burp lynx2-8-2/WWW/Library/Implementation/HTGopher.c
lynx2-8-2-patched/WWW/Library/Implementation/HTGopher.c
--- lynx2-8-2/WWW/Library/Implementation/HTGopher.c Thu Mar 4 05:39:45 1999
+++ lynx2-8-2-patched/WWW/Library/Implementation/HTGopher.c Fri Mar 19
04:52:55 1999
@@ -1720,8 +1720,12 @@ PRIVATE int HTLoadGopher ARGS4(
** If it's a port 79/0[/...] URL, use the finger gateway. - FM
*/
if (strstr(arg, ":79/0") != NULL) {
+#ifndef DISABLE_FINGER
CTRACE(tfp, "HTGopher: Passing to finger gateway.\n");
return HTLoadFinger(arg, anAnchor, format_out, sink);
+#else /* finger is disabled */
+ HTAlert("Unable to access document!");
+#endif /* DISABLE_FINGER */
}
/*
- lynx-dev [PATCH][dev20] --disable-* nits,
John Bley <=