From 72ca4a68de371baabf36d90179f5bc442d146057 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 2 Dec 2007 13:34:27 +0100 Subject: Fix debugs (This used to be commit 77b31ef44a9f7c1c9b80d90653a49affee8e0372) --- source3/smbd/nttrans.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'source3/smbd/nttrans.c') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 1ba2a335bf..c9bc3f45a0 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -483,6 +483,19 @@ static NTSTATUS create_file(connection_struct *conn, uint8_t oplock_granted = NO_OPLOCK_RETURN; NTSTATUS status; + DEBUG(10,("reply_ntcreate_and_X: flags = 0x%x, access_mask = 0x%x " + "file_attributes = 0x%x, share_access = 0x%x, " + "create_disposition = 0x%x create_options = 0x%x " + "root_dir_fid = 0x%x, fname = %s\n", + (unsigned int)flags, + (unsigned int)access_mask, + (unsigned int)file_attributes, + (unsigned int)share_access, + (unsigned int)create_disposition, + (unsigned int)create_options, + (unsigned int)root_dir_fid, + fname)); + SET_STAT_INVALID(sbuf); if (create_options & FILE_OPEN_BY_FILE_ID) { @@ -853,6 +866,9 @@ static NTSTATUS create_file(connection_struct *conn, } done: + DEBUG(10, ("create_file: info=%d, oplock_granted=%d, file_len=%lu\n", + info, (int)oplock_granted, (unsigned long)file_len)); + *result = fsp; *pinfo = info; *poplock_granted = oplock_granted; @@ -862,6 +878,8 @@ static NTSTATUS create_file(connection_struct *conn, return NT_STATUS_OK; fail: + DEBUG(10, ("create_file: %s\n", nt_errstr(status))); + if (fsp != NULL) { close_file(fsp, ERROR_CLOSE); fsp = NULL; @@ -979,8 +997,6 @@ void reply_ntcreate_and_X(connection_struct *conn, struct smb_request *req) return; } - DEBUG(10, ("create_file returned fsp %p\n", fsp)); - if (flags & EXTENDED_RESPONSE_REQUIRED) { /* This is very strange. We * return 50 words, but only set -- cgit