[PATCH] [SAMBA3] Improve handling of lookups in unsearchable directories.

James Peach jpeach at apple.com
Wed Feb 6 16:40:46 GMT 2008


On Feb 6, 2008, at 2:05 AM, Volker Lendecke wrote:

> On Tue, Feb 05, 2008 at 03:11:51PM -0800, James Peach wrote:
>> Only in the case where you were attempting to search for a particular
>> filename but couldn't do it because you didn't have search access to
>> the directory. If you don't have search access, then how can you  
>> prove
>> whether EACCES is more or less accurate than ENOENT for a case-
>> sensitive filesystem?
>
> So what you want to fix is a trans2_findfirst without
> wildcards?

yes, this is the main problem

> If that's the case, wouldn't it be better to
> handle this at a higher level?

I think that this is the right level. This is the level that does the  
findfirst wildcard matching and it's also the level that short- 
circuits the search for a non-wildcard findfirst.

Maybe all this stuff should be moved up closer to the findfirst code,  
but I'm not breaking any new ground by solving findfirst problems in  
dir.c. 


More information about the samba-technical mailing list