diff options
author | 2017-10-30 16:44:18 +0000 | |
---|---|---|
committer | 2017-10-30 16:44:18 +0000 | |
commit | 36a21831101d4170b10294f631d0151bd07a600d (patch) | |
tree | e403d88f235913a01c7cf517762d3edf35f7f029 /lib/libc | |
parent | List bwfm(4) in usb(4). (diff) | |
download | wireguard-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