From: Jeffrey Altman Date: Thu, 28 Jun 2007 04:53:15 +0000 (+0000) Subject: DEVEL15-windows-odd-vnode-is-dir-20070627 X-Git-Tag: openafs-devel-1_5_21~24 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ad57a35883fde76d85bc8e088a446728b0b39f24;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-odd-vnode-is-dir-20070627 its odd vnodes are directories, not even ones (cherry picked from commit 5c9c49137f9b08ef919963c0c9d8fdfcb9733307) --- diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index e1887d3c3..6a21311da 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -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;