You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/06/22 19:35:11 UTC
DO NOT REPLY [Bug 39869] New: - apr_proc_create calls unsupp'd getenv on WinCE
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39869>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39869
Summary: apr_proc_create calls unsupp'd getenv on WinCE
Product: APR
Version: HEAD
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: APR
AssignedTo: bugs@httpd.apache.org
ReportedBy: carnold@apache.org
apr_proc_create calls getenv("COMSPEC") if the program name ends in ".bat" or
".cmd". getenv (like any environment variables related method) is not supported
on WinCE and I don't think (but could be wrong) that there is any standard
command shell on WinCE (or at least ones that take .bat or .cmd).
The attached patch eliminates (for WinCE) the special handling of program files
ending in ".bat" or ".cmd" and falls through to the general case.
Alternatively, you could replace
char *shellcmd = getenv("COMSPEC");
with
#if defined(_WIN32_WCE)
char *shellcmd = NULL;
#else
char *shellcmd = getenv("COMSPEC");
#endif
However, if you ever passed in a ".bat", you would get a message that "COMSPEC
envar is not set" instead of a hopefully more helpful message from the general
code path (hopefully something like not valid executable or file not found).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39869] - apr_proc_create calls unsupp'd getenv on WinCE
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39869>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39869
------- Additional Comments From carnold@apache.org 2006-06-22 17:37 -------
Created an attachment (id=18507)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18507&action=view)
Bypasses special handling of *'bat and *.cmd files in apr_proc_create
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39869] - apr_proc_create calls unsupp'd getenv on WinCE
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39869>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39869
wrowe@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|bugs@httpd.apache.org |bugs@apr.apache.org
------- Additional Comments From wrowe@apache.org 2006-09-19 19:54 -------
Mass reassign the 44 open apr-bugs to apr bug list
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org