windows-smb-misc-two-20080714
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 14 Jul 2008 14:36:44 +0000 (14:36 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 14 Jul 2008 14:36:44 +0000 (14:36 +0000)
LICENSE MIT

Fix the assignment of SMB_ATTR_DIRECTORY.  Apply it to the correct field
name.

src/WINNT/afsd/smb3.c

index 9bdcf00..f3d55cc 100644 (file)
@@ -4108,9 +4108,9 @@ smb_ApplyV3DirListPatches(cm_scache_t *dscp,smb_dirListPatch_t **dirPatchespp,
                      * and odd means it is to be treated as a file.
                      */
                     if (mustFake && (scp->fid.vnode & 0x1))
-                        fa->extFileAttributes = SMB_ATTR_DIRECTORY;
+                        fa->attributes = SMB_ATTR_DIRECTORY;
                     else
-                        fa->extFileAttributes = SMB_ATTR_NORMAL;
+                        fa->attributes = SMB_ATTR_NORMAL;
                 }
                 /* merge in hidden (dot file) attribute */
                 if ( patchp->flags & SMB_DIRLISTPATCH_DOTFILE ) {