File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -402,16 +402,8 @@ diff --git a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOpera
402402index ce4de44a..96ee566d 100644
403403--- a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
404404+++ b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
405- @@ -940,17 +940,19 @@ enum _FileOperations {
406- #endif
407- var statInfo = stat()
408- if fstat(srcFD, &statInfo) == 0 {
409- + #if !os(WASI) // WASI doesn't have fchown for now
410- // Copy owner/group
411- if fchown(dstFD, statInfo.st_uid, statInfo.st_gid) != 0 {
412- try delegate.throwIfNecessary(errno, srcPath(), dstPath())
405+ @@ -944,11 +944,11 @@ enum _FileOperations {
413406 }
414- + #endif
415407
416408 // Copy modification date
417409- let value = timeval(tv_sec: statInfo.st_mtim.tv_sec, tv_usec: statInfo.st_mtim.tv_nsec / 1000)
You can’t perform that action at this time.
0 commit comments