FIX: Verify after copy under macOS

This commit is contained in:
Alexander Koblov 2024-02-29 23:25:25 +03:00
commit 2e0343433d

View file

@ -874,7 +874,7 @@ begin
begin
FileCloseOnExec(Result);
{$IF DEFINED(DARWIN)}
if (Mode and fmOpenDirect <> 0) then
if (Mode and (fmOpenSync or fmOpenDirect) <> 0) then
begin
if (FpFcntl(Result, F_NOCACHE, 1) = -1) then
begin
@ -915,7 +915,7 @@ begin
begin
FileCloseOnExec(Result);
{$IF DEFINED(DARWIN)}
if (Mode and fmOpenDirect <> 0) then
if (Mode and (fmOpenSync or fmOpenDirect) <> 0) then
begin
if (FpFcntl(Result, F_NOCACHE, 1) = -1) then
begin