]> granicus.if.org Git - python/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:11 +0000 (20:00 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 31 Mar 2006 20:00:11 +0000 (20:00 +0000)
commit54a188aed8cc8333927a679bb00eda4e25aa0cba
treed7e8d7a2b743c63927216d8060bae4625734b134
parentdcdfd22bb411ebf0d58bba135455c4abf2bc9ce1
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.
Modules/posixmodule.c