From 77d210cde774995bffdebf3347847afebd6f7cfd Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 22 Oct 2006 03:29:05 +0000 Subject: [PATCH] windows-delonclose-20061021 set delonclose after obtaining the smb_fid_t --- 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 04a8535a94..3f5e328f21 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -2865,7 +2865,6 @@ long smb_ReceiveTran2QPathInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t qpi.u.QPfileStandardInfo.allocationSize = scp->length; qpi.u.QPfileStandardInfo.endOfFile = scp->length; qpi.u.QPfileStandardInfo.numberOfLinks = scp->linkCount; - qpi.u.QPfileStandardInfo.deletePending = (delonclose ? 1 : 0); qpi.u.QPfileStandardInfo.directory = ((scp->fileType == CM_SCACHETYPE_DIRECTORY || scp->fileType == CM_SCACHETYPE_MOUNTPOINT || @@ -2880,6 +2879,7 @@ long smb_ReceiveTran2QPathInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t lock_ReleaseMutex(&fidp->mx); smb_ReleaseFID(fidp); } + qpi.u.QPfileStandardInfo.deletePending = (delonclose ? 1 : 0); } else if (infoLevel == SMB_QUERY_FILE_EA_INFO) { qpi.u.QPfileEaInfo.eaSize = 0;