I/O ktrace of sendsyslog(2) did not work. As uiomove() adjusts
authorbluhm <bluhm@openbsd.org>
Mon, 28 Jul 2014 20:30:01 +0000 (20:30 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 28 Jul 2014 20:30:01 +0000 (20:30 +0000)
commitc6cdd80053fc8a07882742dc9cc66ed020b07697
treedcbc953dc2a593000117d5c64d6b8c0a30f561a5
parent09b3691db13c9f77d6839213ee221a34f7ecbcf8
I/O ktrace of sendsyslog(2) did not work.  As uiomove() adjusts
iov_len to 0, we need a propper length calculation.  While there,
use -1 for the file descriptor because 0 is reserved for stdin.
OK deraadt@ guenther@
sys/kern/subr_log.c