Groups > Symbian > Symbian SDKs > Re: Platform security issue in TFindFile::FindByDir




Platform security issue in TFindFile::FindByDir

Platform security issue in TFindFile::FindByDir
Thu, 08 Jun 2006 10:02:28 +020
Hello there,

we noticed that the TFindFile API does not return an accurate error code when 
searching in directories that the application does not have access to given 
platform security data caging.

So for example if you try to search in
TInt res =
findfile.FindByDir("c:\\sys\\bin","someapp.exe");

res is always -1 if the application doesn't have AllFiles capability but the 
file is there. IMHO it should return -46 KErrPermissionDenied instead of -1.

What do you think?

Regards,

Dominik
Post Reply
Re: Platform security issue in TFindFile::FindByDir
Thu, 15 Jun 2006 06:25:58 +010
I think you're probably right - the Not found error is deceptive here.
I'll raise a defect against this - but it may take some time to resolve.

Thanks for this

Regards
Hamish

"Dominik Röttsches" <d-r@roettsches.de> wrote in message
news:UZmfnEtiGHA.2476@extapps30...
> Hello there,
>
> we noticed that the TFindFile API does not return an accurate error code
when
> searching in directories that the application does not have access to
given
> platform security data caging.
>
> So for example if you try to search in
> TInt res =
findfile.FindByDir("c:\\sys\\bin","someapp.exe");
>
> res is always -1 if the application doesn't have AllFiles capability but
the
> file is there. IMHO it should return -46 KErrPermissionDenied instead
of -1.
>
> What do you think?
>
> Regards,
>
> Dominik
>

Post Reply
about | contact