Message159787
| Author |
pitrou |
| Recipients |
adiroiban, pitrou |
| Date |
2012年05月02日.11:36:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1335958571.24.0.00029287644392.issue14706@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This is not a Python bug. os.access() is just a wrapper around the POSIX access() function:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html
"If any access permissions are checked, each shall be checked individually, as described in XBD File Access Permissions, except that where that description refers to execute permission for a process with appropriate privileges, an implementation may indicate success for X_OK even if execute permission is not granted to any user."
So this seems to be a well-known portability problem accross Unix implementations. If you want to test the executable bits, just use os.stat(). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月02日 11:36:11 | pitrou | set | recipients:
+ pitrou, adiroiban |
| 2012年05月02日 11:36:11 | pitrou | set | messageid: <1335958571.24.0.00029287644392.issue14706@psf.upfronthosting.co.za> |
| 2012年05月02日 11:36:10 | pitrou | link | issue14706 messages |
| 2012年05月02日 11:36:10 | pitrou | create |
|