From 1f2818192fef9bd2707068414e8800dfc56b681e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 10 Feb 2015 02:36:03 -0500 Subject: [PATCH] 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 --- src/WINNT/afsrdr/user/RDRFunction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); /* -- 2.39.5