➜

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.

作者 vstinner
收信人 desrt, georg.brandl, larry, ned.deily, vstinner
日期 2014-03-28.09:10:52
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1395997853.22.0.324664220296.issue21082@psf.upfronthosting.co.za>
In-reply-to
内容
The shell command "umask" calls umask(022) to get the current umask, and then call umask() with result of the first call.

022 is the default umask, it's probably safer to call umask(0o22) in _get_masked_mode() instead of umask(0).

Attached patch makes this change.

If you change something, it should be backported to 3.2, 3.3 and 3.4, because I agree that it affects the security.
历史
日期 用户 动作 参数
2014-03-28 09:10:53vstinner修改recipients: + vstinner, georg.brandl, larry, ned.deily, desrt
2014-03-28 09:10:53vstinner修改messageid: <1395997853.22.0.324664220296.issue21082@psf.upfronthosting.co.za>
2014-03-28 09:10:53vstinner链接issue21082 messages
2014-03-28 09:10:52vstinner创建