fstat() of opened fd, rather than stat(), to avoid TOCTOU
authorderaadt <deraadt@openbsd.org>
Mon, 12 Oct 2015 05:54:18 +0000 (05:54 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 12 Oct 2015 05:54:18 +0000 (05:54 +0000)
commitb154e2c0a99bad776cb43391283323adbae0c908
tree82cd7adc9f8fcea3a2a1149fdd743b3ce52e5737
parent284f68dbad454d03549a697187015f8707789399
fstat() of opened fd, rather than stat(), to avoid TOCTOU
ok jsg
usr.sbin/mkuboot/mkuboot.c