Message110988
My initial analysis was incorrect after talking with the bash(1) folks. test(1) is doing things wrong too:
case FILEX:
/* XXX work around eaccess(2) false positives for superuser */
if (eaccess(nm, X_OK) != 0)
return 0;
if (S_ISDIR(s.st_mode) || geteuid() != 0)
return 1;
return (s.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0;
So it looks like test(1) is broken as well (doesn't check for ACLs, or MAC info).
Interesting why it's only implemented for X_OK though...
Based on this analysis, I'd say that access(2) is broken on FreeBSD and needs to be fixed. |
|
Date |
User |
Action |
Args |
2010-07-21 01:32:54 | ngie | set | recipients:
+ ngie, r.david.murray, docs@python |
2010-07-21 01:32:54 | ngie | set | messageid: <1279675974.53.0.481257235019.issue9311@psf.upfronthosting.co.za> |
2010-07-21 01:32:53 | ngie | link | issue9311 messages |
2010-07-21 01:32:53 | ngie | create | |
|