[fpc-devel] Unexpexted result of FindFirst with 2.2.4

Stefan Kisdaroczi kisda at hispeed.ch
Wed May 13 13:46:55 CEST 2009


Jonas Maebe schrieb:
> 
> 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.

Thank you for fixing this, Jonas.

I patched my 2.2.4 with your 2.3.1 changes (trunk, r13074) and it works fine now.
I have attached a cleanly applying patch for 2.2.4, if someone else needs it.

Kisda

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: findfirst.patch
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090513/404119ec/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090513/404119ec/attachment.sig>


More information about the fpc-devel mailing list