[PATCH] [SAMBA3] Improve handling of lookups in unsearchable
jpeach at apple.com
Tue Feb 5 23:11:51 GMT 2008
On Feb 5, 2008, at 11:33 AM, Volker Lendecke wrote:
> On Tue, Feb 05, 2008 at 09:44:19AM -0800, James Peach wrote:
>> This change allows us to hold open a directory iterator that is not
>> backed by a real open directory handle as long as we are not
>> to iterate or search for a wildcard. This means that clients using
>> FindFirst to lookup filenames do not require search privileges
>> unless we end up needing to do a case-matching search.
> So you basically ignore the ACCESS_DENIED at ntcreate&x time
> but instead return no files?
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-
> I'm not sure I like that idea.
In the current behaviour, drop-boxes are broken. You can't copy a file
to a directory where you don't have search permissions.
More information about the samba-technical