mirror of
https://github.com/restic/restic.git
synced 2026-10-29 11:35:42 +00:00
minimize usage of internal/fs in tests
This commit is contained in:
1 parent
65a7157383
commit
cc7f99125a
11 files changed
+23
-57
No files matched your search
@@ -58,7 +58,7 @@ func lchown(_ string, _ int, _ int) (err error) {
|
||||
// restoreSymlinkTimestamps restores timestamps for symlinks
|
||||
func nodeRestoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
|
||||
// tweaked version of UtimesNano from go/src/syscall/syscall_windows.go
|
||||
pathp, e := syscall.UTF16PtrFromString(path)
|
||||
pathp, e := syscall.UTF16PtrFromString(fixpath(path))
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user