--- Merging (from foreign repository) r44090 into '.':

U    rtl/unix/sysutils.pp

git-svn-id: branches/fixes_3_2@44228 -
This commit is contained in:
joost 2020-02-21 14:49:57 +00:00
parent 6704b5fa9f
commit 4b06ea7fe7

View File

@ -662,6 +662,9 @@ var
SystemFileName: RawByteString;
isdir: Boolean;
begin
// Do not call fpAccess with an empty name. (Valgrind will complain)
if Filename='' then
Exit(False);
SystemFileName:=ToSingleByteFileSystemEncodedFileName(FileName);
// Don't use stat. It fails on files >2 GB.
// Access obeys the same access rules, so the result should be the same.