fix(macos): preserve approvals migration data

(cherry picked from commit 4b1b0275a7)
This commit is contained in:
Andy Ye
2026-06-14 23:16:24 -07:00
committed by Vincent Koc
parent 508ce22468
commit a8a0dd0cbb

View File

@@ -368,7 +368,7 @@ enum ExecApprovalsStore {
tempURL.path,
targetURL.path,
nil,
copyfile_flags_t(COPYFILE_EXCL))
copyfile_flags_t(COPYFILE_DATA | COPYFILE_EXCL))
if copied == -1 {
if errno == EEXIST {
try? FileManager().removeItem(at: tempURL)