From 75b028153f1298e9b2a63eaa7f48ceb958a9e641 Mon Sep 17 00:00:00 2001 From: Finagolfin Date: Tue, 31 Dec 2024 20:45:19 +0530 Subject: [PATCH] Don't try to set extended attributes on Android Normal users don't have permission to change these, even for their own files. --- Sources/FoundationEssentials/FileManager/FileOperations.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FoundationEssentials/FileManager/FileOperations.swift b/Sources/FoundationEssentials/FileManager/FileOperations.swift index 2ef8a0375..b0f5e5524 100644 --- a/Sources/FoundationEssentials/FileManager/FileOperations.swift +++ b/Sources/FoundationEssentials/FileManager/FileOperations.swift @@ -951,7 +951,7 @@ enum _FileOperations { #if !canImport(Darwin) private static func _copyDirectoryMetadata(srcFD: CInt, srcPath: @autoclosure () -> String, dstFD: CInt, dstPath: @autoclosure () -> String, delegate: some LinkOrCopyDelegate) throws { - #if !os(WASI) + #if !os(WASI) && !os(Android) // Copy extended attributes var size = flistxattr(srcFD, nil, 0) if size > 0 {