summaryrefslogtreecommitdiff
path: root/base/mkromfs.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2017-02-09 15:54:42 +0000
committerChris Liddell <chris.liddell@artifex.com>2017-02-09 16:02:54 +0000
commite476d710841d8be4d4e56c2b9e468e914f977161 (patch)
treeb133610659c85c31899dc52f41047f6c6450e0d3 /base/mkromfs.c
parent42fd2f459098bfda17ca8d29195ada57154cfe06 (diff)
downloadghostpdl-e476d710841d8be4d4e56c2b9e468e914f977161.tar.gz
ramfs: fix modes other than (r) and (w)
The (a), (r+) and (w+) modes were not working correctly. The "core" code of the ramfs was correct, but the "glue" code between the Ghostscript stream API and the ramfs core was not setting flags to support those. Conversely, the ramfs "glue" code was not setting the permissions flags correctly in the stream objects it created, when using the "+" modes. Also, (w) and (w+) were not truncating the file on opening. Finally, tweak the definition of the various read/write/etc flags for the ramfs code so the values match those used in the stream API (this makes fixing the flags in the stream objects much simpler).
Diffstat (limited to 'base/mkromfs.c')
0 files changed, 0 insertions, 0 deletions