LuaDist/srlua — pull request #1 by mkottman (2012-12-27 21:43:06+00:00)
Title: Search PATH for executable path when not on Windows

When running on OS other than Windows, `srlua` attempts to open `argv[0]` as the executable. When called from `PATH`, this file is not accessible and `srlua` fails to execute the file. This patch implements the `PATH` search to find the executable path on which `fopen` succeeds.