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/helpers PrintPath
Date Fri, 03 Mar 2000 14:30:10 GMT
bjh         00/03/03 06:30:10

  Modified:    src/helpers PrintPath
  Log:
  Allow scripts (that don't have a .exe extension) to be found by PrintPath
  under OS/2.
  
  Revision  Changes    Path
  1.2       +11 -0     apache-2.0/src/helpers/PrintPath
  
  Index: PrintPath
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/helpers/PrintPath,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PrintPath	1999/08/24 05:50:36	1.1
  +++ PrintPath	2000/03/03 14:30:09	1.2
  @@ -99,6 +99,17 @@
   	    fi
   	    exit 0
   	fi
  +
  +# Next try without extension (if one was used above)
  +	if [ "x$ext" != "x" ]; then
  +            if [ $test_exec_flag $path/${program} ] && \
  +               [ ! -d $path/${program} ]; then
  +                if [ "x$echo" = "xyes" ]; then
  +                    echo $path/${program}
  +                fi
  +                exit 0
  +            fi
  +        fi
       done
   done
   exit 1
  
  
  

Mime
View raw message