summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-10-30 16:44:18 +0000
committerkrw <krw@openbsd.org>2017-10-30 16:44:18 +0000
commit36a21831101d4170b10294f631d0151bd07a600d (patch)
treee403d88f235913a01c7cf517762d3edf35f7f029 /lib/libc
parentList bwfm(4) in usb(4). (diff)
downloadwireguard-openbsd-36a21831101d4170b10294f631d0151bd07a600d.tar.xz
wireguard-openbsd-36a21831101d4170b10294f631d0151bd07a600d.zip
Fix '-L' file handling. Mixing idioms in previous cleanups ended up
fopen()'ing the the file with a mode of "a" (so watchers don't detect changes until the file is re-written as part of interface configuration) but using rewind() to start writing from the beginning of the file. Use ftruncate() and overwrite the date as intended, rather than appending new data. Problem reported and diffs tested by Mike via tech@. Thanks!
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions