Patch #1517891: Make 'a' create the file if it doesn't exist.
Fixes #1514451.
4 files changed