summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorChris Webb <chris@arachsys.com>2023-11-28 08:51:32 +0000
committerChris Webb <chris@arachsys.com>2023-11-28 08:51:32 +0000
commit3ba3399f943dff5d5fbe0c4b89752b0ec549ff74 (patch)
tree7ee2439400c84ce4d0509fa61003d66af4f91d15 /src/input_handler.cc
parentd3af9b57d46cd5a7b0a4688c161b18b4b8d40a28 (diff)
Set replacement file permissions before moving into place
When doing :write -method replace, make sure we've set the correct mode, uid and gid on the replacement file before attempting to rename it on top of the original. This means that the original file is left in place with correct permissions if anything fails, rather than ending up with 0700 permissions from mkstemp().
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions