]> Cypherpunks repositories - gostls13.git/commit
syscall: really use utimensat for UtimesNano on Solaris
authorTobias Klauser <tklauser@distanz.ch>
Mon, 14 Aug 2017 07:47:58 +0000 (09:47 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Aug 2017 16:56:03 +0000 (16:56 +0000)
commit92f6350287289579b370c92bd885ef82cab25e13
treeffea6171627652552aa3b45cdff78dba8b978f37
parente4ba9e3c546251c742b6496752c376f6a253c4a9
syscall: really use utimensat for UtimesNano on Solaris

golang.org/cl/55130 added utimensat for Solaris but didn't use it in
UtimesNano (despite indicating otherwise in the commit message). Fix
this by also using utimensat for UtimesNano on Solaris.

Because all versions of Solaris suppported by Go support utimensat,
there is no need for the fallback logic and utimensat can be called
unconditionally.

This issue was pointed out by Shawn Walker-Salas.

Updates #16480

Change-Id: I114338113a6da3cfcb8bca950674bdc8f5a7a9e5
Reviewed-on: https://go-review.googlesource.com/55141
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_solaris.go