You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2010/09/26 12:04:39 UTC

svn commit: r1001398 - /httpd/httpd/trunk/server/gen_test_char.c

Author: fuankg
Date: Sun Sep 26 10:04:39 2010
New Revision: 1001398

URL: http://svn.apache.org/viewvc?rev=1001398&view=rev
Log:
Small cleanup and macro rename to make clearer for what it is.

Modified:
    httpd/httpd/trunk/server/gen_test_char.c

Modified: httpd/httpd/trunk/server/gen_test_char.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?rev=1001398&r1=1001397&r2=1001398&view=diff
==============================================================================
--- httpd/httpd/trunk/server/gen_test_char.c (original)
+++ httpd/httpd/trunk/server/gen_test_char.c Sun Sep 26 10:04:39 2010
@@ -29,8 +29,8 @@
 #include "apr.h"
 #include "apr_lib.h"
 
-#ifdef WIN32
-#define WANT_WIN32
+#if defined(WIN32) || defined(OS2)
+#define NEED_ENHANCED_ESCAPES
 #endif
 
 #endif
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
             printf("\n    ");
 
         /* escape_shell_cmd */
-#if defined(WANT_WIN32) || defined(OS2)
+#ifdef NEED_ENHANCED_ESCAPES
         /* Win32/OS2 have many of the same vulnerable characters
          * as Unix sh, plus the carriage return and percent char.
          * The proper escaping of these characters varies from unix