glibc-2.12-1.207.el6 backported this upstream commit:
Author: Ulrich Drepper <firstname.lastname@example.org>
Date: Tue Nov 15 04:24:42 2011 -0500
Clean up internal fopen uses
No need to ever not use c and e.
However, the backport contains this change:
- memcpy (mempcpy (newmode, mode, modelen), "c", 2);
+ memcpy (mempcpy (newmode, mode, modelen), "ce", 2);
This is not correct, upstream uses
memcpy (mempcpy (newmode, mode, modelen), "ce", 3);
Fist reported here: https://blogs.oracle.com/wim/entry/oracle_linux_6_update_9
(Via bug 1012343 comment 21.)
Do note that you will need to increase the size of the newmode array as well.
I'm closing this as a duplicate of bug 1437147 because we need some additional fixes we missed in the original backport review.
*** This bug has been marked as a duplicate of bug 1437147 ***