You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by sei sen <fi...@elemsoft.com> on 2001/03/15 12:31:59 UTC
general/7415: SSI #exec cmd doesn't work on win2K
>Number: 7415
>Category: general
>Synopsis: SSI #exec cmd doesn't work on win2K
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Mar 15 03:40:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: fix@elemsoft.com
>Release: 1.3.19 / win32
>Organization:
apache
>Environment:
Windows2000 sp1(Japanese)
apache_1.3.19-win32-src-r2.msi
>Description:
#exec cmd doesn't work on win2K(NT too?).
It generates the following output even if I gave any command to the "#exec cmd" directive.
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
D:home\user\www\>
>How-To-Repeat:
>Fix:
I couldn't found the real cause of this problem.
But I found some problem in util_script.c,
function: ap_call_exec
line:1127
pCommand = ap_pstrcat(r->pool, "\"", comspec, "\" /C \"",
r->filename, "\"", NULL);
//1. The value of "r->filename" is HTMLfile name, not command name?
for (p = pCommand; *p; ++p) {
if (*p == '/')
*p = '\\';
}
//2. this code change "/C" to "\C".
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]