minimize usage of internal/fs in tests

This commit is contained in:
Michael Eischer committed 2024-08-31 18:20:41 +02:00
1 parent 65a7157383
commit cc7f99125a
11 files changed
+23 -57

No files matched your search

+1 -1
View File
@@ -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
}