]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: service must set reparse point attribute
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 10 Nov 2011 01:05:05 +0000 (20:05 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 10 Nov 2011 21:01:33 +0000 (13:01 -0800)
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 <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/user/RDRFunction.c

index ed232bcd41ac5bbc686d1e4187edb655309236dc..cf6fcad8afeba17e72dff939753b2d75366215c5 100644 (file)
@@ -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