You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bj...@locus.apache.org on 2000/03/03 15:30:10 UTC

cvs commit: apache-2.0/src/helpers PrintPath

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