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:27
SpamBayes Score 0.01878482
Marked as misclassified No
Message-id <1279675950.72.0.313405662157.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...
History
Date User Action Args
2010-07-21 01:32:30ngiesetrecipients: + ngie, r.david.murray, docs@python
2010-07-21 01:32:30ngiesetmessageid: <1279675950.72.0.313405662157.issue9311@psf.upfronthosting.co.za>
2010-07-21 01:32:28ngielinkissue9311 messages
2010-07-21 01:32:27ngiecreate