1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 12:04:12 +01:00

Only consider executable files in io.pathSearch.

This commit is contained in:
Kris Maglione
2011-02-08 02:24:16 -05:00
parent 263df6bf5a
commit d3bfe2b919

View File

@@ -393,7 +393,7 @@ var IO = Module("io", {
dir = this.File(dir, true);
let file = dir.child(bin);
if (file.exists())
if (file.exists() && file.isFile() && file.isExecutable())
return file;
// TODO: couldn't we just palm this off to the start command?