You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/10/27 20:47:41 UTC

[PATCH] PR#1317: AIX 1.x can't have files named @

This patch makes the proxy work under AIX 1.x.  The conditionals below
should isolate the exact version of AIX which has the problem.

Dean

Index: proxy_util.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/proxy/proxy_util.c,v
retrieving revision 1.33
diff -u -r1.33 proxy_util.c
--- proxy_util.c	1997/10/22 20:30:08	1.33
+++ proxy_util.c	1997/10/27 19:42:57
@@ -657,8 +657,15 @@
     char tmp[22];
     int i, k, d;
     unsigned int x;
+#if defined(AIX) && defined(__ps2__)
+    /* Believe it or not, AIX 1.x does not allow you to name a file '@',
+     * so hack around it in the encoding. */
     static const char enc_table[64] =
-    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_@";
+	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_%";
+#else
+    static const char enc_table[64] =
+	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_@";
+#endif
 
     MD5Init(&context);
     MD5Update(&context, (const unsigned char *) it, strlen(it));