]> granicus.if.org Git - apache/commitdiff
Allow scripts (that don't have a .exe extension) to be found by PrintPath
authorBrian Havard <bjh@apache.org>
Fri, 3 Mar 2000 14:30:09 +0000 (14:30 +0000)
committerBrian Havard <bjh@apache.org>
Fri, 3 Mar 2000 14:30:09 +0000 (14:30 +0000)
under OS/2.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84706 13f79535-47bb-0310-9956-ffa450edef68

build/PrintPath

index 908d274008313895aedb42b232bc1a09fd0364c6..68435f3744c3df09a04e8e210e605a2772289063 100755 (executable)
@@ -99,6 +99,17 @@ do
            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