You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/03/21 06:58:09 UTC

cvs commit: apache-1.3/src/main http_core.c

wrowe       02/03/20 21:58:09

  Modified:    src/main http_core.c
  Log:
    Win32; Never invoke cmd or bat scripts based on the registry,
    even with 'ScriptInterpreterSource Registry' enabled, since I've
    discovered the registry is inconsistent between the versions of
    WinNT/2K/XP.  [William Rowe]
  
  Revision  Changes    Path
  1.307     +1 -5      apache-1.3/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_core.c,v
  retrieving revision 1.306
  retrieving revision 1.307
  diff -u -r1.306 -r1.307
  --- http_core.c	21 Mar 2002 05:55:37 -0000	1.306
  +++ http_core.c	21 Mar 2002 05:58:08 -0000	1.307
  @@ -979,12 +979,8 @@
       }
       ext = strrchr(exename, '.');
   
  -    if (ext && (!strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd")) &&
  -        d->script_interpreter_source != INTERPRETER_SOURCE_REGISTRY) 
  +    if (ext && (!strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd"))) 
       {
  -        /* The registry does these for us unless INTERPRETER_SOURCE_REGISTRY
  -         * was not enabled.
  -         */
           char *p, *shellcmd = getenv("COMSPEC");
           if (!shellcmd)
               shellcmd = SHELL_PATH;