Skip to content

Commit 2f2854e

Browse files
committed
Fix Foundation patch for devel branch on CI
1 parent f0d1157 commit 2f2854e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

swift-android-foundation-devel.patch

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -402,16 +402,8 @@ diff --git a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOpera
402402
index 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)

0 commit comments

Comments
 (0)