httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/threadproc/os2 proc.c
Date Fri, 14 Jul 2000 14:23:39 GMT
bjh         00/07/14 07:23:39

  Modified:    src/lib/apr/threadproc/os2 proc.c
  Log:
  OS/2: Fix a canonical error mismatch, allowing .exe files to be spawned
  without explicitly including the .exe extension.
  
  Revision  Changes    Path
  1.27      +1 -1      apache-2.0/src/lib/apr/threadproc/os2/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/threadproc/os2/proc.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- proc.c	2000/07/14 14:20:08	1.26
  +++ proc.c	2000/07/14 14:23:38	1.27
  @@ -349,7 +349,7 @@
       } else if (stricmp(extension, ".exe") != 0) {
           status = ap_open(&progfile, progname, APR_READ|APR_BUFFERED, 0, cont);
   
  -        if (status == APR_ENOENT) {
  +        if (status != APR_SUCCESS && ap_canonical_error(status) == APR_ENOENT)
{
               progname = ap_pstrcat(cont, progname, ".exe", NULL);
           }
   
  
  
  

Mime
View raw message