Wrong order of parameters in rtl/access() (FreeBSD, fpc-1.0.7)
Original Reporter info from Mantis: >8<
-
Reporter name: Bug Import
Original Reporter info from Mantis: >8<
- Reporter name: Bug Import
Description:
There is a small error in unixsysc.inc for
FreeBSD (fpc-1.0.7):
Function Access(Path:Pathstr ;mode:longint):boolean;
The call to do_syscall(), I think, has the parameters
path and mode reversed:
Access:=do_syscall (
syscall_nr_access,
mode,
longint(@path[1]))=0;
Instead, It should be:
Access:=do_syscall (
syscall_nr_access,
longint(@path[1]),
mode)=0;
This bug prevented lazarus from working (executing
the compiler, enabling read/write in unit editor, ...)
I have seen similar behaviour on
fpc-1.0.6/Solaris, although I don't know if it's the
same or similar bug.
By the way, thank you for the impressive work
(fpc + lazarus).
--Juan
Additional information:
Imported information
--------------------
Name: Juan Segovia
Mail: jsegovia (at) cnc.una.py
Mantis conversion info:
- Mantis ID: 71