You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/06/01 02:00:14 UTC

svn commit: r543324 - /apr/apr/trunk/threadproc/win32/proc.c

Author: wrowe
Date: Thu May 31 17:00:13 2007
New Revision: 543324

URL: http://svn.apache.org/viewvc?view=rev&rev=543324
Log:
Eliminate for WinCE the special handling of program files ending in 
".bat" or ".cmd" and falls through to the general case.  There is no
COMSPEC on WinCE (no getenv either) and no command line shell.

PR: 39869
Submitted by: Curt Arnold <carnold apache.org>
Reviewed by: Davi Arnaut

Modified:
    apr/apr/trunk/threadproc/win32/proc.c

Modified: apr/apr/trunk/threadproc/win32/proc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/win32/proc.c?view=diff&rev=543324&r1=543323&r2=543324
==============================================================================
--- apr/apr/trunk/threadproc/win32/proc.c (original)
+++ apr/apr/trunk/threadproc/win32/proc.c Thu May 31 17:00:13 2007
@@ -505,6 +505,9 @@
     else 
 #endif
     {
+#if defined(_WIN32_WCE)
+        {
+#else
         /* Win32 is _different_ than unix.  While unix will find the given
          * program since it's already chdir'ed, Win32 cannot since the parent
          * attempts to open the program with it's own path.
@@ -562,6 +565,7 @@
             }
         }
         else {
+#endif
             /* A simple command we are directly invoking.  Do not pass
              * the first arg to CreateProc() for APR_PROGRAM_PATH
              * invocation, since it would need to be a literal and