Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Fix after go vet

Nick Craig-Wood555e545b46a2
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
}