From: Jeffrey Altman Date: Thu, 10 Nov 2011 01:05:05 +0000 (-0500) Subject: Windows: service must set reparse point attribute X-Git-Tag: upstream/1.8.0_pre1^2~3064 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b947adbacb5db4ce5e380ea28e1d734fdadd5cdf;p=packages%2Fo%2Fopenafs.git 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 --- 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