diff options
author | Tim Prouty <tprouty@samba.org> | 2009-07-01 16:15:52 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-07-06 15:38:41 -0700 |
commit | 0f6e10886f3f778fe301ee981873f29d295d39c5 (patch) | |
tree | f8c2b4d88d7f20793f2c8444d6ea3fbf102534f3 /source3/smbd | |
parent | de3246eae2b1234cc7fcb7d4dd6c6863ab9d31b3 (diff) | |
download | samba-0f6e10886f3f778fe301ee981873f29d295d39c5.tar.gz samba-0f6e10886f3f778fe301ee981873f29d295d39c5.tar.bz2 samba-0f6e10886f3f778fe301ee981873f29d295d39c5.zip |
s3: Change some filename_convert to pass in NULL for char **fname argument
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/nttrans.c | 4 | ||||
-rw-r--r-- | source3/smbd/reply.c | 11 | ||||
-rw-r--r-- | source3/smbd/smb2_create.c | 4 | ||||
-rw-r--r-- | source3/smbd/trans2.c | 4 |
4 files changed, 11 insertions, 12 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index c65cbf851b..add0b40f2e 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -549,7 +549,7 @@ void reply_ntcreate_and_X(struct smb_request *req) req->flags2 & FLAGS2_DFS_PATHNAMES, fname, &smb_fname, - &fname); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { @@ -1030,7 +1030,7 @@ static void call_nt_transact_create(connection_struct *conn, req->flags2 & FLAGS2_DFS_PATHNAMES, fname, &smb_fname, - &fname); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index d7eaaa8a2c..e37cdcb6b4 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -994,7 +994,7 @@ void reply_checkpath(struct smb_request *req) req->flags2 & FLAGS2_DFS_PATHNAMES, name, &smb_fname, - &name); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { @@ -2095,7 +2095,7 @@ void reply_mknew(struct smb_request *req) req->flags2 & FLAGS2_DFS_PATHNAMES, fname, &smb_fname, - &fname); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { reply_botherror(req, @@ -2109,7 +2109,8 @@ void reply_mknew(struct smb_request *req) if (fattr & aVOLID) { DEBUG(0,("Attempt to create file (%s) with volid set - " - "please report this\n", fname)); + "please report this\n", + smb_fname_str_dbg(smb_fname))); } if(req->cmd == SMBmknew) { @@ -2227,7 +2228,7 @@ void reply_ctemp(struct smb_request *req) req->flags2 & FLAGS2_DFS_PATHNAMES, fname, &smb_fname, - &fname); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { reply_botherror(req, NT_STATUS_PATH_NOT_COVERED, @@ -5197,7 +5198,7 @@ void reply_mkdir(struct smb_request *req) req->flags2 & FLAGS2_DFS_PATHNAMES, directory, &smb_dname, - &directory); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { reply_botherror(req, NT_STATUS_PATH_NOT_COVERED, diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 2c79077507..a936a0892e 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -316,8 +316,6 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, } info = FILE_WAS_CREATED; } else { - char *fname = NULL; - /* these are ignored for SMB2 */ in_create_options &= ~(0x10);/* NTCREATEX_OPTIONS_SYNC_ALERT */ in_create_options &= ~(0x20);/* NTCREATEX_OPTIONS_ASYNC_ALERT */ @@ -327,7 +325,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, smbreq->flags2 & FLAGS2_DFS_PATHNAMES, in_name, &smb_fname, - &fname); + NULL); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); goto out; diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index a6440d574f..dfb682ee21 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -5413,7 +5413,7 @@ static NTSTATUS smb_set_file_unix_hlink(connection_struct *conn, req->flags2 & FLAGS2_DFS_PATHNAMES, oldname, &smb_fname_old, - &oldname); + NULL); if (!NT_STATUS_IS_OK(status)) { return status; } @@ -7347,7 +7347,7 @@ static void call_trans2mkdir(connection_struct *conn, struct smb_request *req, req->flags2 & FLAGS2_DFS_PATHNAMES, directory, &smb_dname, - &directory); + NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { |