diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-04-25 19:22:18 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-05-16 13:24:01 +0200 |
| commit | 5b609d292642a9146a64f60ff75e3bdc44c8d14a (patch) | |
| tree | ee978ab2ac0682ef861a3bbb046a5c5c272dabd8 /buffer.h | |
| parent | b23116112e21fbdecc51e2029bfe01c0f19b5267 (diff) | |
| download | vis-5b609d292642a9146a64f60ff75e3bdc44c8d14a.tar.gz vis-5b609d292642a9146a64f60ff75e3bdc44c8d14a.tar.xz | |
text: use mkstemp(3) for temporary file creation in atomic saves
Instead of simply appending a tilde to the original file name, we now
create an unique temporary file based on the pattern `.filename.vis.XXXXXX`.
In case the file does not yet exist, we use 0666 & ~umask as permission,
(this should match the previous `open(2)` based behavior).
Diffstat (limited to 'buffer.h')
0 files changed, 0 insertions, 0 deletions
