[New-bugs-announce] [issue20428] _Py_open does not work with O_CREAT

Alexandre Vassalotti report at bugs.python.org
Wed Jan 29 00:45:30 CET 2014


New submission from Alexandre Vassalotti:

The _Py_open function in Python/fileutils.c cannot be given correctly the flag O_CREAT. According to the POSIX spec, open(2) _must_ be given an additional mode argument when O_CREAT is used.

_Py_open should be fixed to either to use a reasonable default value for the mode argument (e.g., O666) or to refuse the O_CREAT flag.

----------
components: Interpreter Core
messages: 209600
nosy: alexandre.vassalotti, haypo
priority: normal
severity: normal
stage: needs patch
status: open
title: _Py_open does not work with O_CREAT
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20428>
_______________________________________


More information about the New-bugs-announce mailing list