[lazarus] New Bug Entered

bugtracker at miraclec.com bugtracker at miraclec.com
Wed Sep 25 15:37:46 EDT 2002



Title: Wrong order of parameters in rtl/access() (FreeBSD, fpc-1.0.7)

Entered by: Juan Segovia

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






More information about the Lazarus mailing list