]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Now we properly open file handles for directory enumerations, we don't...
authorJeremy Allison <jra@samba.org>
Tue, 16 Jul 2019 16:39:54 +0000 (09:39 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:34 +0000 (14:23 +0000)
The share mode exclusion will prevent deletion of open directory
enumeration handles.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index 3fee9ceb8e8ec31c773d471726baf1c35973a70d..ee57f2f2fe71d311aa5d208592868040cca457dd 100644 (file)
@@ -6505,7 +6505,6 @@ void reply_rmdir(struct smb_request *req)
        files_struct *fsp = NULL;
        int info = 0;
        uint32_t ucf_flags = ucf_flags_from_smb_request(req);
-       struct smbd_server_connection *sconn = req->sconn;
 
        START_PROFILE(SMBrmdir);
 
@@ -6589,8 +6588,6 @@ void reply_rmdir(struct smb_request *req)
                reply_outbuf(req, 0, 0);
        }
 
-       dptr_closepath(sconn, smb_dname->base_name, req->smbpid);
-
        DEBUG(3, ("rmdir %s\n", smb_fname_str_dbg(smb_dname)));
  out:
        TALLOC_FREE(smb_dname);