apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r543325 - /apr/apr/branches/1.2.x/threadproc/win32/proc.c
Date Fri, 01 Jun 2007 00:00:39 GMT
Author: wrowe
Date: Thu May 31 17:00:38 2007
New Revision: 543325

URL: http://svn.apache.org/viewvc?view=rev&rev=543325
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
Backport: 543324

Modified:
    apr/apr/branches/1.2.x/threadproc/win32/proc.c

Modified: apr/apr/branches/1.2.x/threadproc/win32/proc.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/threadproc/win32/proc.c?view=diff&rev=543325&r1=543324&r2=543325
==============================================================================
--- apr/apr/branches/1.2.x/threadproc/win32/proc.c (original)
+++ apr/apr/branches/1.2.x/threadproc/win32/proc.c Thu May 31 17:00:38 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



Mime
View raw message