mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
fs: fix restoring timestamps on Windows for long paths
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user