You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2000/09/22 20:30:32 UTC
[patch NETWARE] http_core.c - please comment
This is a suggestion for NETWARE, please test and instruct me to
commit if it's appropriate.
[There... washed from my plate]
Index: main/http_core.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.283
diff -u -r1.283 http_core.c
--- main/http_core.c 2000/09/08 15:57:10 1.283
+++ main/http_core.c 2000/09/21 21:06:27
@@ -368,10 +368,19 @@
* See directory_walk().
*/
-#ifdef HAVE_DRIVE_LETTERS
+#if defined(HAVE_DRIVE_LETTERS)
#define IS_SPECIAL(entry_core) \
((entry_core)->r != NULL \
|| ((entry_core)->d[0] != '/' && (entry_core)->d[1] != ':'))
+#elif defined(NETWARE)
+/* XXX: No idea if this is correct...
+ * Attempting to test that in xyz:/ or abc/xyz:/, / follows the :
+ */
+#define IS_SPECIAL(entry_core) \
+ ((entry_core)->r != NULL \
+ || ((entry_core)->d[0] != '/'
+ && strchr((entry_core)->d, ':')
+ && *(strchr((entry_core)->d, ':') + 1) != '/'))
#else
#define IS_SPECIAL(entry_core) \
((entry_core)->r != NULL || (entry_core)->d[0] != '/')