MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0010468 | CMake | CMake | public | 2010-03-26 13:38 | 2016-06-10 14:31 | |||||
| Reporter | hippo | |||||||||
| Assigned To | Brad King | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||
| Status | closed | Resolution | moved | |||||||
| Platform | OS | OS Version | ||||||||
| Product Version | CMake-2-8 | |||||||||
| Target Version | Fixed in Version | |||||||||
| Summary | 0010468: find_program() doesn't find not readable programs on *nix | |||||||||
| Description | Say, I'm trying to do find_program(SUDO NAMES sudo) and it fails while sudo is actually available and working. find_program() calls cmSystemTools::FindProgram(), which in turn uses SystemTools::FileExists(). FileExists() calls "access(filename, R_OK)" to determine if the file is useful. This is wrong, because a program may be not readable and still executable. This is, for example, the case for setuid programs, as many distributions set ---s--x--x mode for them. Also access() checks real user's permission instead of effective one. | |||||||||
| Steps To Reproduce | ||||||||||
| Additional Information | ||||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | ||||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2010-03-26 13:38 | hippo | New Issue | ||||||||
| 2010-09-12 21:19 | Bill Hoffman | Status | new => assigned | |||||||
| 2010-09-12 21:19 | Bill Hoffman | Assigned To | => Brad King | |||||||
| 2012-08-13 10:37 | Brad King | Status | assigned => backlog | |||||||
| 2012-08-13 10:37 | Brad King | Note Added: 0030526 | ||||||||
| 2013-03-18 10:57 | Brad King | Relationship added | related to 0014022 | |||||||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041672 | ||||||||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | |||||||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | |||||||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||