[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev patch to HTAAServ.c to allow use of NO_RULES
From: |
Henry Nelson |
Subject: |
lynx-dev patch to HTAAServ.c to allow use of NO_RULES |
Date: |
Fri, 12 Mar 1999 10:10:52 +0900 (JST) |
Please integrate the following patch so that the NO_RULES define can
be used. (Seems first post of this patch was not caught.)
__Henry
*** lynx2-8-2/WWW/Library/Implementation/HTAAServ.c.orig Fri Feb 26
09:39:33 1999
--- lynx2-8-2/WWW/Library/Implementation/HTAAServ.c Fri Feb 26 10:11:29 1999
***************
*** 425,430 ****
--- 425,432 ----
HTAAFailReason = HTAA_DOTDOT;
}
else {
+
+ #ifndef NO_RULES
pathname = HTTranslate(local_copy); /* Translate rules even if */
/* a /htbin call to set up */
/* protections. */
***************
*** 447,452 ****
--- 449,456 ----
HTAAFailReason = HTAA_BY_RULE;
}
else if (HTAAFailReason != HTAA_HTBIN) {
+ #endif /* NO_RULES */
+
/* pathname != NULL */
char *acc_method = HTParse(pathname, "", PARSE_ACCESS);
if (!*acc_method || 0 == strcmp(acc_method,"file")) { /*Local file,
do AA*/
***************
*** 464,470 ****
--- 468,478 ----
"Gatewaying -- skipping authorization check",
acc_method);
}
+
+ #ifndef NO_RULES
} /* pathname */
+ #endif /* NO_RULES */
+
}
FREE(local_copy);
- lynx-dev patch to HTAAServ.c to allow use of NO_RULES,
Henry Nelson <=