Possible Problem with UNIX file attributes in SysUtils.FindFirst?
Original Reporter info from Mantis: lks
-
Reporter name:
Original Reporter info from Mantis: lks
- Reporter name:
Description:
In rtl/unix/sysutils.pp, around line 859, there is the following code in FindGetFileInfo:
if Assigned(f.FindHandle) and ( (PUnixFindData(F.FindHandle)^.searchattr and faSymlink) > 0)
However, the field searchattr is defined as a Byte, and faSymlink is the value $400, so it doesn't seem as though the test will ever succeed.
Shouldn't SearchAttr be defined as a LongInt at line 834?
Mantis conversion info:
- Mantis ID: 29870
- OS: OSX
- OS Build: 10.11.3
- Build: 33305
- Platform: i386-darwin
- Version: 3.1.1
- Fixed in version: 3.0.2
- Fixed in revision: 33340 (#960963e7)
- Target version: 3.0.2