summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-12-02 13:34:27 +0100
committerVolker Lendecke <vl@sernet.de>2007-12-05 13:45:12 +0100
commit72ca4a68de371baabf36d90179f5bc442d146057 (patch)
tree90f5cb4bbb7c7fe7358616106e2020fdbfba6a8d /source3/smbd/nttrans.c
parent3f1ed0fc1918d357b103f401a725b5477cd61b60 (diff)
downloadsamba-72ca4a68de371baabf36d90179f5bc442d146057.tar.gz
samba-72ca4a68de371baabf36d90179f5bc442d146057.tar.bz2
samba-72ca4a68de371baabf36d90179f5bc442d146057.zip
Fix debugs
(This used to be commit 77b31ef44a9f7c1c9b80d90653a49affee8e0372)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c20
1 files changed, 18 insertions, 2 deletions
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