From 7eeb271d9f12498b77f90a28c063bdfcb22afa39 Mon Sep 17 00:00:00 2001 From: "Robert S. Murawski" Date: Fri, 11 Jul 2003 03:12:46 +0000 Subject: [PATCH] winnt-fileinfo-is-directory-20030710 correctly report directories by not setting field in incorrect position in reply. --- src/WINNT/afsd/smb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index f5c38ec44a..fd125bbda8 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -1345,9 +1345,9 @@ long smb_ReceiveTran2QFileInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t *((LARGE_INTEGER *)op) = scp->length; op += 8; /* EOF */ *((u_long *)op) = scp->linkCount; op += 4; *op++ = ((fidp->flags & SMB_FID_DELONCLOSE) ? 1 : 0); - *op++ = 0; *op++ = (scp->fileType == CM_SCACHETYPE_DIRECTORY ? 1 : 0); *op++ = 0; + *op++ = 0; } else if (infoLevel == 0x103) { *((u_long *)op) = 0; op += 4;