O_TRUNC is needed in case file exists.
authornicm <nicm@openbsd.org>
Thu, 11 Feb 2021 09:03:38 +0000 (09:03 +0000)
committernicm <nicm@openbsd.org>
Thu, 11 Feb 2021 09:03:38 +0000 (09:03 +0000)
commit18dfbca446a8f70ba5f9b560b6e57130fd711a36
treef67850c52ecc80afe1d7900f2305d9fe4dca385d
parent0c0c2584134dbfad42dbd43ce22a56b1e92057f6
O_TRUNC is needed in case file exists.
usr.bin/tmux/cmd-save-buffer.c