Skip to content
Snippets Groups Projects
Commit 66724af8 authored by Vladimir's avatar Vladimir Committed by Brad King
Browse 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.
parent 25694819
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment