From 555e545b46a20bbcc4c15d60b447face2e40fef8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 26 Dec 2012 12:27:26 +0000 Subject: [PATCH] Fix after go vet --- chtimes_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chtimes_linux.go b/chtimes_linux.go index 0aeccdf78..d59a79f5c 100644 --- a/chtimes_linux.go +++ b/chtimes_linux.go @@ -72,7 +72,7 @@ func Chtimes(name string, atime time.Time, mtime time.Time) error { utimes[0] = syscall.NsecToTimespec(atime.UnixNano()) utimes[1] = syscall.NsecToTimespec(mtime.UnixNano()) if e := Utimensat(AT_FDCWD, name, utimes[0:]); e != nil { - return &os.PathError{"chtimes", name, e} + return &os.PathError{Op: "chtimes", Path: name, Err: e} } return nil }