[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev 2.8.3dev.1 patch 2 - anon defaults, mailcap $DISPLAY test
From: |
Klaus Weide |
Subject: |
lynx-dev 2.8.3dev.1 patch 2 - anon defaults, mailcap $DISPLAY test |
Date: |
Fri, 18 Jun 1999 05:29:21 -0500 (CDT) |
* Change newly introduced CAN_ANONYMOUS_* at end of userdefs.h to
be FALSE by default, to get behavior with -anonymous that is
equivalent to 2.8.2.
* Handle some more common forms of mailcap $DISPLAY tests internally
in HTInit.c.
--- lynx2-8-3.old/src/HTInit.c Tue, 08 Jun 1999 10:55:11 -0500
+++ lynx2-8-3/src/HTInit.c Fri, 18 Jun 1999 04:35:27 -0500
@@ -530,7 +530,9 @@
/*
* Save overhead of system() calls by faking these. - FM
*/
- if (0 == strcasecomp(mc->testcommand, "test -n \"$DISPLAY\"")) {
+ if (0 == strcmp(mc->testcommand, "test \"$DISPLAY\"") ||
+ 0 == strcmp(mc->testcommand, "test \"$DISPLAY\" != \"\"") ||
+ 0 == strcasecomp(mc->testcommand, "test -n \"$DISPLAY\"")) {
FREE(mc->testcommand);
CTRACE(tfp, "PassesTest: Testing for XWINDOWS environment.\n");
if (LYgetXDisplay() != NULL) {
--- lynx2-8-3.old/userdefs.h Sat, 12 Jun 1999 17:10:16 -0500
+++ lynx2-8-3/userdefs.h Fri, 18 Jun 1999 05:03:26 -0500
@@ -1482,10 +1482,10 @@
* set to FALSE if users with anonymous restrictions should
* not be able to view configuration file (lynx.cfg) info
* via special LYNXCFG: links. (This does not control access
- * to lynx.cfg as a normal file, e.g., through a "file:" URL,
+ * to lynx.cfg as a normal file, e.g., through a "file:" URL,
* if other restrictions allow that.)
*/
-#define CAN_ANONYMOUS_VIEW_LYNXCFG_INFO TRUE
+#define CAN_ANONYMOUS_VIEW_LYNXCFG_INFO FALSE
/*******************************
* set to FALSE if users with anonymous restrictions should
@@ -1500,7 +1500,7 @@
* names and location and links for reading the files, as well
* as information on nesting of included configuration files.
*/
-#define CAN_ANONYMOUS_VIEW_LYNXCFG_EXTENDED_INFO TRUE
+#define CAN_ANONYMOUS_VIEW_LYNXCFG_EXTENDED_INFO FALSE
/*******************************
* set to FALSE if users with anonymous restrictions should
@@ -1510,7 +1510,7 @@
* AND --disable-config-info wasn't used, otherwise this
* special URL scheme isn't recognized anyway.
*/
-#define CAN_ANONYMOUS_VIEW_COMPILEOPTS_INFO TRUE
+#define CAN_ANONYMOUS_VIEW_COMPILEOPTS_INFO FALSE
/*******************************
* set to FALSE if you don't want users of your anonymous
@@ -1518,7 +1518,7 @@
* configuration info (LYNXCFG: and LYNXCOMPILEOPTS:) if
* they are otherwise allowed.
*/
-#define CAN_ANONYMOUS_GOTO_CONFIGINFO TRUE
+#define CAN_ANONYMOUS_GOTO_CONFIGINFO FALSE
/*****************************
* Be sure you have read about and set defines above in Sections
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev 2.8.3dev.1 patch 2 - anon defaults, mailcap $DISPLAY test,
Klaus Weide <=