Commit 66724af8 authored by Committed by Brad KingBrowse files
SystemTools: Teach FindProgram to find non-readable programs
This commit fixes FindProgram failing to detect executable without read bit set. find_program internally uses SystemTools::FileExists which calls access(R_OK) instead of access(X_OK). Replacing SystemTools::FileExists with SystemTools::TestFileAccess fixes this issue. Fine example of such program is sudo.