[fpc-devel] Unexpexted result of FindFirst with 2.2.4

Jonas Maebe jonas.maebe at elis.ugent.be
Sun May 10 15:29:39 CEST 2009


On 10 May 2009, at 15:10, fpclist at silvermono.co.za wrote:

> On Sunday 10 May 2009 14:41:06 Jonas Maebe wrote:
>> On 21 Apr 2009, at 16:47, Stefan Kisdaroczi wrote:
>>> FindFirst from fpc 2.2.4 returns zero (file found) and an empty Name
>>> if I search for files in a empty directory.
>>> With fpc 2.2.2 FindFirst returns -1 as expected.
>>>
>>> Im using Debian Lenny (i386) and installed the 2.2.4 *.deb's from
>>> the freepascal ftp site.
>>>
>>> The following program is quiet with fpc 2.2.2, with 2.2.4 the output
>>> is:
>>> Found:  Len=0
>>>
>>> Can someone please confirm this. Thank you.
>>
>> I can confirm this behaviour, but it has been fixed already in 2.3.1
>> in the mean time.
>>
>
> I'm using fpc 2.2.5 Linux (2009-03-06). Seems to be working okay in  
> respect to
> above.

That would be quite strange, since the bug was (I think) introduced in  
2.2.x on 2008-11-14, and the fix has not been merged to 2.2.5.

> I'm busy downloading the fpc 2.2.4 stable as we speak. Should I hold
> the upgrade?

In general, going from 2.2.5 to 2.2.4 would be considered a downgrade  
rather than an upgrade (although 2.2.4 was released after 2009-03-06  
and a security fix was merged into 2.2.4 after that date). No changes  
related to findfirst/findnext were done anymore though.


Jonas



More information about the fpc-devel mailing list