TMP: source3/smbd/smb2_close.c - add some DEBUG
authorStefan Metzmacher <metze@samba.org>
Mon, 6 Feb 2012 22:02:08 +0000 (23:02 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:13 +0000 (18:41 +0200)
source3/smbd/smb2_close.c

index 2cc8266fe171d87f85cf2490acbe7fd03825488f..16d13785fe40be7952fc708aecd010237fb1ce76 100644 (file)
@@ -56,6 +56,7 @@ NTSTATUS smbd_smb2_request_process_close(struct smbd_smb2_request *req)
        if (req->compat_chain_fsp) {
                /* skip check */
        } else if (in_file_id_persistent != in_file_id_volatile) {
+DEBUG(0,("here: %s:%s\n", __location__, __FUNCTION__));
                return smbd_smb2_request_error(req, NT_STATUS_FILE_CLOSED);
        }
 
@@ -102,12 +103,15 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
 
        fsp = file_fsp(smbreq, (uint16_t)in_file_id_volatile);
        if (fsp == NULL) {
+DEBUG(0,("here: %s:%s\n", __location__, __FUNCTION__));
                return NT_STATUS_FILE_CLOSED;
        }
        if (conn != fsp->conn) {
+DEBUG(0,("here: %s:%s\n", __location__, __FUNCTION__));
                return NT_STATUS_FILE_CLOSED;
        }
        if (req->session->vuid != fsp->vuid) {
+DEBUG(0,("here: %s:%s\n", __location__, __FUNCTION__));
                return NT_STATUS_FILE_CLOSED;
        }