From b947adbacb5db4ce5e380ea28e1d734fdadd5cdf Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 9 Nov 2011 20:05:05 -0500 Subject: [PATCH] Windows: service must set reparse point attribute When populating the directory entry information for the redirector the service must set the reparse point attribute. Change-Id: I26db0b822f850f0a19606eeed3c29e0e72562e2f Reviewed-on: http://gerrit.openafs.org/5824 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/user/RDRFunction.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index ed232bcd4..cf6fcad8a 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -456,15 +456,17 @@ RDR_PopulateCurrentEntry( IN AFSDirEnumEntry * pCurrentEntry, if (bMustFake) { switch (scp->fileType) { case CM_SCACHETYPE_DIRECTORY: + pCurrentEntry->FileAttributes = SMB_ATTR_DIRECTORY; + break; case CM_SCACHETYPE_MOUNTPOINT: case CM_SCACHETYPE_INVALID: - pCurrentEntry->FileAttributes = SMB_ATTR_DIRECTORY; + pCurrentEntry->FileAttributes = SMB_ATTR_DIRECTORY | SMB_ATTR_REPARSE_POINT; break; case CM_SCACHETYPE_SYMLINK: if (cm_TargetPerceivedAsDirectory(scp->mountPointStringp)) - pCurrentEntry->FileAttributes = SMB_ATTR_DIRECTORY; + pCurrentEntry->FileAttributes = SMB_ATTR_DIRECTORY | SMB_ATTR_REPARSE_POINT; else - pCurrentEntry->FileAttributes = SMB_ATTR_NORMAL; + pCurrentEntry->FileAttributes = SMB_ATTR_REPARSE_POINT; break; default: /* if we get here we either have a normal file -- 2.39.5