httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject [PATCH] PR#1317: AIX 1.x can't have files named @
Date Mon, 27 Oct 1997 19:47:41 GMT
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));



Mime
View raw message