* fplstat needs to pass AT_SYMLINK_NOFOLLOW if the newfstatat syscall is used, reported by bald zhang, resolves #36528

git-svn-id: trunk@43880 -
This commit is contained in:
florian 2020-01-06 21:35:13 +00:00
parent 404c6e0c15
commit df6cf6637d

View File

@ -521,7 +521,7 @@ Function fpLstat(path:pchar;Info:pstat):cint;
begin
{$if defined(generic_linux_syscalls)}
fpLStat:=do_syscall(syscall_nr_fstatat,AT_FDCWD,TSysParam(path),TSysParam(info),0)
fpLStat:=do_syscall(syscall_nr_fstatat,AT_FDCWD,TSysParam(path),TSysParam(info),AT_SYMLINK_NOFOLLOW)
{$else}
fpLStat:=do_syscall(
{$ifdef cpu64}