]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-odd-vnode-is-dir-20070627
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Jun 2007 04:53:15 +0000 (04:53 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Jun 2007 04:53:15 +0000 (04:53 +0000)
its odd vnodes are directories, not even ones

(cherry picked from commit 5c9c49137f9b08ef919963c0c9d8fdfcb9733307)

src/WINNT/afsd/smb3.c

index e1887d3c3e780b1fc8ce9a16e14005009d2b9b8a..6a21311dac16f0d4e41adb15e36f95f19f032230 100644 (file)
@@ -3726,7 +3726,7 @@ smb_ApplyV3DirListPatches(cm_scache_t *dscp,
                      * even means it is to be treated as a directory
                      * and odd means it is to be treated as a file.
                      */
-                    if (mustFake && (scp->fid.vnode % 2 == 0))
+                    if (mustFake && (scp->fid.vnode & 0x1))
                         *((u_long *)dptr) = SMB_ATTR_DIRECTORY;
                     else
                         *((u_long *)dptr) = SMB_ATTR_NORMAL;