utimens: Improve error code on native Windows.
commitdf46bfb995b3cbd33ecfe5be088b83dbf9064f51
authorBruno Haible <bruno@clisp.org>
Sun, 7 May 2017 19:19:13 +0000 (7 21:19 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 8 May 2017 09:58:49 +0000 (8 11:58 +0200)
tree51687ac401a44058338f897a7911a796aa3926c8
parenteb5c620e3bc9744b7d5fc189389fc6ffa9853eed
utimens: Improve error code on native Windows.

* lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
error code EACCES, not EINVAL.
ChangeLog
lib/utimens.c