This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ngie
Recipients docs@python, ngie, r.david.murray
Date 2010-07-21.01:32:53
SpamBayes Score 0.0025844297
Marked as misclassified No
Message-id <1279675974.53.0.481257235019.issue9311@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-21 01:32:54ngiesetrecipients: + ngie, r.david.murray, docs@python
2010-07-21 01:32:54ngiesetmessageid: <1279675974.53.0.481257235019.issue9311@psf.upfronthosting.co.za>
2010-07-21 01:32:53ngielinkissue9311 messages
2010-07-21 01:32:53ngiecreate