fs: fix restoring timestamps on Windows for long paths

This commit is contained in:
Michael Eischer committed 2024-09-15 18:28:11 +02:00
1 parent efec1a5e96
commit 4469fe1575
3 files changed
+12 -3

No files matched your search

+1 -1
View File
@@ -315,7 +315,7 @@ func nodeRestoreTimestamps(node *restic.Node, path string) error {
return nodeRestoreSymlinkTimestamps(path, utimes)
}
if err := syscall.UtimesNano(path, utimes[:]); err != nil {
if err := syscall.UtimesNano(fixpath(path), utimes[:]); err != nil {
return errors.Wrap(err, "UtimesNano")
}