summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:00:38 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:00:38 +0000
commitd7ff77dd551497e1df95435fd3fed92e173119fc (patch)
treed067503ab594ba48d74f9984d624a9c0b8685aad
parent075aafa0cab705dc417e5814eab2b0c85dbe926f (diff)
downloadlibapr-d7ff77dd551497e1df95435fd3fed92e173119fc.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/1.2.x@543325 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 859b9387b..fe3615a93 100644
--- a/threadproc/win32/proc.c
+++ b/threadproc/win32/proc.c
@@ -505,6 +505,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.
@@ -562,6 +565,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