The branch, master has been updated
       via  d8ba02b... Return correct error on read request on directory.
      from  19758b3... Get in_minimum and EOF errors right.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d8ba02b73d53863d604ccbe0a4391d7b38590c1c
Author: Jeremy Allison <[email protected]>
Date:   Wed May 5 09:50:48 2010 -0700

    Return correct error on read request on directory.
    
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/smb2_read.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index a428c26..2f36804 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -224,6 +224,10 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX 
*mem_ctx,
                tevent_req_nterror(req, NT_STATUS_FILE_CLOSED);
                return tevent_req_post(req, ev);
        }
+       if (fsp->is_directory) {
+               tevent_req_nterror(req, NT_STATUS_INVALID_DEVICE_REQUEST);
+               return tevent_req_post(req, ev);
+       }
 
        state->out_data = data_blob_talloc(state, NULL, in_length);
        if (in_length > 0 && tevent_req_nomem(state->out_data.data, req)) {


-- 
Samba Shared Repository

Reply via email to