summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2017-04-19 18:47:07 +0300
committerFrank LENORMAND <lenormf@gmail.com>2017-04-20 17:13:42 +0300
commit51ab59cd3624476832272112ae5814fecef12f69 (patch)
tree9d54c258cd188a16ebabecdb5985fccf08262230 /src/input_handler.cc
parent30e6387071b6aee2239d155822091dc834090b7f (diff)
src: Implement a `write!` command
This commit allows "forced" writes to a write-protected file, by attempting to temporarily grant the current user write permissions on it. After the buffer has been written, the previous permissions are restored if the file existed, or set to 0644 otherwise.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions