From: Jeffrey Altman Date: Tue, 10 Feb 2015 07:36:03 +0000 (-0500) Subject: Windows: Fake status info on EACCES X-Git-Tag: upstream/1.8.0_pre1^2~363 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1f2818192fef9bd2707068414e8800dfc56b681e;p=packages%2Fo%2Fopenafs.git Windows: Fake status info on EACCES When enumerating a directory if status info for an entry cannot be obtained, fake it. Do not return STATUS_ACCESS_DENIED to the redirector as that will be interpreted as the directory not being listable. Change-Id: I488f5d8d244c363135e00e156a685cd56fd060c8 Reviewed-on: http://gerrit.openafs.org/11736 Tested-by: BuildBot Reviewed-by: Perry Ruiter Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index c281817d7..1c617aeb1 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -482,7 +482,8 @@ RDR_PopulateCurrentEntry( IN AFSDirEnumEntry * pCurrentEntry, if (code) { osi_Log2(afsd_logp, "RDR_PopulateCurrentEntry RDR_BulkStatLookup failed for scp=0x%p code=0x%x", scp, code); - return code; + if (code != CM_ERROR_NOACCESS) + return code; } lock_ObtainWrite(&scp->rw); /*