summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:00:52 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:00:52 +0000
commit31c3327c5012a21e5f0269b5548f0781c0ba2a72 (patch)
tree69553b908be21c8ffb9c708fc71a8b87fd54f65a
parent7a5b26131d213de1382c9a01813f0f0f74181115 (diff)
downloadlibapr-31c3327c5012a21e5f0269b5548f0781c0ba2a72.tar.gz
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 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@543326 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--threadproc/win32/proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c
index 6491817a1..cb33a0507 100644
--- a/threadproc/win32/proc.c
+++ b/threadproc/win32/proc.c
@@ -390,6 +390,9 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
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.
@@ -447,6 +450,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
}
}
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