summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-02 22:20:48 +0100
committerVolker Lendecke <vl@samba.org>2008-11-02 22:38:03 +0100
commit792324bf5a2bb29144c5ef6525d7d84f4934c93d (patch)
tree9017d4f78d49fbe89867c000f845f0d7cd14b076 /source3/smbd
parente7607b95f281af349df34c5ba0b12673e6ed6250 (diff)
downloadsamba-792324bf5a2bb29144c5ef6525d7d84f4934c93d.tar.gz
samba-792324bf5a2bb29144c5ef6525d7d84f4934c93d.tar.bz2
samba-792324bf5a2bb29144c5ef6525d7d84f4934c93d.zip
Remove the inbuf reference from map_checkpath_error()
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 2aa3c1b841..d88069c9df 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -821,10 +821,10 @@ void reply_ioctl(struct smb_request *req)
Strange checkpath NTSTATUS mapping.
****************************************************************************/
-static NTSTATUS map_checkpath_error(const char *inbuf, NTSTATUS status)
+static NTSTATUS map_checkpath_error(uint16_t flags2, NTSTATUS status)
{
/* Strange DOS error code semantics only for checkpath... */
- if (!(SVAL(inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES)) {
+ if (!(flags2 & FLAGS2_32_BIT_ERROR_CODES)) {
if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_INVALID,status)) {
/* We need to map to ERRbadpath */
return NT_STATUS_OBJECT_PATH_NOT_FOUND;
@@ -851,7 +851,7 @@ void reply_checkpath(struct smb_request *req)
STR_TERMINATE, &status);
if (!NT_STATUS_IS_OK(status)) {
- status = map_checkpath_error((char *)req->inbuf, status);
+ status = map_checkpath_error(req->flags2, status);
reply_nterror(req, status);
END_PROFILE(SMBcheckpath);
return;
@@ -911,7 +911,7 @@ void reply_checkpath(struct smb_request *req)
one at a time - if a component fails it expects
ERRbadpath, not ERRbadfile.
*/
- status = map_checkpath_error((char *)req->inbuf, status);
+ status = map_checkpath_error(req->flags2, status);
if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
/*
* Windows returns different error codes if