View Issue Details

IDProjectCategoryView StatusLast Update
0029870FPCRTLpublic2016-03-27 01:01
ReporterlksAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformi386-darwinOSOSXOS Version10.11.3
Product Version3.1.1Product Build33305 
Target Version3.0.2Fixed in Version3.0.2 
Summary0029870: Possible Problem with UNIX file attributes in SysUtils.FindFirst?
DescriptionIn 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?
TagsNo tags attached.
Fixed in Revision33340
FPCOldBugId
FPCTarget
Attached Files

Activities

Michael Van Canneyt

2016-03-27 01:01

administrator   ~0091455

Well spotted. Fixed, thanks for reporting.

Issue History

Date Modified Username Field Change
2016-03-21 18:27 lks New Issue
2016-03-27 01:01 Michael Van Canneyt Fixed in Revision => 33340
2016-03-27 01:01 Michael Van Canneyt Note Added: 0091455
2016-03-27 01:01 Michael Van Canneyt Status new => resolved
2016-03-27 01:01 Michael Van Canneyt Fixed in Version => 3.0.2
2016-03-27 01:01 Michael Van Canneyt Resolution open => fixed
2016-03-27 01:01 Michael Van Canneyt Assigned To => Michael Van Canneyt
2016-03-27 01:01 Michael Van Canneyt Target Version => 3.0.2