summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:00:13 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:00:13 +0000
commit06013232fec7f9f0222f5d77b8553598b50fcf62 (patch)
tree2e2c7acb657e0825ea034fefbf4cedb9e4004fa6 /threadproc
parente990db00b0ac11e272fdd3335a59ecebcce6433d (diff)
downloadlibapr-06013232fec7f9f0222f5d77b8553598b50fcf62.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 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543324 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-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 0092faeb4..3f48d15e9 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