windows-afsd-list-acl-only-dir-20070515
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 16 May 2007 04:43:47 +0000 (04:43 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 16 May 2007 04:43:47 +0000 (04:43 +0000)
commite02fa3e73b258938135244f7e3c09baa464e0c26
treee0e3ca9bf01cdb3a261e65a53015f7052f35af33
parent60bbb56b546438d5e89854f61bcea368c5537341
windows-afsd-list-acl-only-dir-20070515

FIXES 60258

When the ACL on a directory is list only, attempts to read the status
of items in the directory will fail.  Therefore, it is pointless to try.
Instead, when we know the user ACL does not have read permission, we
should immediately lie about the status info.  That way we don't pound
the file server with requests that will produce an abort which in turn
will trigger force the file server to delay responses to the client.

This change has the added benefit that cached status info is no longer
leaked to callers that do not have appropriate permissions.

With this change the Explorer Shell is much more responsive.
src/WINNT/afsd/smb3.c