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 eryksun
Recipients John Jones, eryksun
Date 2015-07-12.18:24:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436725446.06.0.00991619157614.issue24617@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a bug, but perhaps the documentation could further clarify that the set of valid values for the mode parameter is platform dependent. The [POSIX specification][1] for mkdir() states that "[w]hen bits in mode other than the file permission bits are set, the meaning of these additional bits is implementation-defined". On Linux, mkdir honors the sticky bit (S_ISVTX). On OS X, on the other hand, the [man page][2] states that "the behavior of mkdir() is undefined when mode bits other than the low 9 bits are used. Use chmod(2) after mkdir() to explicitly set the other bits".

1. http://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html
2. https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/mkdir.2.html
History
Date User Action Args
2015-07-12 18:24:06eryksunsetrecipients: + eryksun, John Jones
2015-07-12 18:24:06eryksunsetmessageid: <1436725446.06.0.00991619157614.issue24617@psf.upfronthosting.co.za>
2015-07-12 18:24:06eryksunlinkissue24617 messages
2015-07-12 18:24:05eryksuncreate