mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 02:50:40 +01:00
* 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:
parent
404c6e0c15
commit
df6cf6637d
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user