cvs_file_copy() used futimes(), but only set the tv_sec fields,
authorguenther <guenther@openbsd.org>
Fri, 11 Aug 2023 04:48:14 +0000 (04:48 +0000)
committerguenther <guenther@openbsd.org>
Fri, 11 Aug 2023 04:48:14 +0000 (04:48 +0000)
commitfd71e6a329ee2d6a44cd0fb734d7803da8f04d9d
treeb462380fd6b0d98f3177d2d9465d8c8a938138dc
parent73b8bd0c8d7b9088f91615987bea01d9851c8136
cvs_file_copy() used futimes(), but only set the tv_sec fields,
which presumably meant passing stack garbage in the tv_usec and
failing with EINVAL, whee.  Switch to futimens() and set the full
timespecs from the incoming struct stat

ok millert@
usr.bin/cvs/file.c