Skip to content
  • Vladimir's avatar
    SystemTools: Teach FindProgram to find non-readable programs · 66724af8
    Vladimir authored and Brad King's avatar Brad King committed
    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.
    66724af8