]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.
authorGeorg Brandl <georg@python.org>
Fri, 31 Mar 2006 20:00:15 +0000 (20:00 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 31 Mar 2006 20:00:15 +0000 (20:00 +0000)
commit38bb9c6d147e25d372f69eca6b047c89a547a8e9
tree606c0220722e515c049ffaaea17138b704911849
parent831c22958e7547d7350d93dff68393bafb333657
bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.
glibc, for example, does this already on its own, but it seems that
the solaris libc doesn't. This leads to Python code being able to over-
write file contents even though having specified "a" mode.
 (backport from rev. 43501)
Modules/posixmodule.c