diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2017-02-09 15:54:42 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2017-02-09 16:02:54 +0000 |
commit | e476d710841d8be4d4e56c2b9e468e914f977161 (patch) | |
tree | b133610659c85c31899dc52f41047f6c6450e0d3 /base/mkromfs.c | |
parent | 42fd2f459098bfda17ca8d29195ada57154cfe06 (diff) | |
download | ghostpdl-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