tee(1): use idiomatic write loop
authorcheloha <cheloha@openbsd.org>
Sun, 21 Nov 2021 16:15:43 +0000 (16:15 +0000)
committercheloha <cheloha@openbsd.org>
Sun, 21 Nov 2021 16:15:43 +0000 (16:15 +0000)
commitb6c15d9a21627375e3aa5cceca2edd2dd835b05f
tree900640045d11c34fc809b444d6212361c036c56b
parentb46dae7c73034976ebce48b4e2d76a491716a09e
tee(1): use idiomatic write loop

tee(1) handles partial writes correctly, but the more idiomatic write
loop is shorter and easier to audit than this heterodox approach.

ok millert@
usr.bin/tee/tee.c