Overview
| Artifact ID: | e2e7eecd9b9ad8b51b4ffa5920ad51e0bb999861 |
|---|---|
| Ticket: | 219254ffffffffffffffffffffffffffffffffff
[file executable file_name] always returns 1 when working fr |
| User & Date: | hobbs on 2000-11-21 01:15:50 |
Changes
- icomment:
This has nothing to do in particular with Solaris. This is a valid stupid feature according to the POSIX spec. From the spec: "Some historical implementations of access() do not check the file's access correctly when the real user ID of the process is the superuser. In particular, they indicate that the file may be executed without regard to whether the file is executable. The standards allow this behavior." Thus, we shouldn't rely on access() for executability when the user is root.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"