aboutsummaryrefslogtreecommitdiff
path: root/vis-modes.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-04-25 19:22:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2018-05-16 13:24:01 +0200
commit5b609d292642a9146a64f60ff75e3bdc44c8d14a (patch)
treeee978ab2ac0682ef861a3bbb046a5c5c272dabd8 /vis-modes.c
parentb23116112e21fbdecc51e2029bfe01c0f19b5267 (diff)
downloadvis-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 'vis-modes.c')
0 files changed, 0 insertions, 0 deletions