iovcnt can be zero, writev does not like that and O_CREATE is
authorotto <otto@openbsd.org>
Fri, 9 Dec 2022 18:11:24 +0000 (18:11 +0000)
committerotto <otto@openbsd.org>
Fri, 9 Dec 2022 18:11:24 +0000 (18:11 +0000)
commit6f6c5cbbb8ab46e1157f5706bc5fbe2966166720
tree2702ae015888c11c98a88e6c7b7a0f0c8e51027d
parenteaf13d837ca2e04b36ae3071804e300d22ccf55f
iovcnt can be zero, writev does not like that and O_CREATE is
not needed, we just renamed sucessfully to that file.
ok deraadt@ florian@
sbin/resolvd/resolvd.c