mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 16:49:20 +02:00
* add parameter (=0) to getdirentries, hopefully fixes occasional EFAULT loops.
probably the random value of the register caused problems, already in the patch from bug #37220
(cherry picked from commit adf1a0642f
)
This commit is contained in:
parent
4f07bff6ac
commit
c75945a32b
@ -188,7 +188,7 @@ const DIRBLKSIZ=1024;
|
||||
function FpGetdirentries(fd : cint; buf : pchar; nbytes : clong) : cint;
|
||||
|
||||
begin
|
||||
FpGetdirentries:=do_syscall(syscall_nr_getdirentries,fd,TSysParam(buf), nbytes);
|
||||
FpGetdirentries:=do_syscall(syscall_nr_getdirentries,fd,TSysParam(buf),nbytes,TSysParam(0));
|
||||
end;
|
||||
{$endif}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user