smbd: Simplify reply_rmdir()
authorVolker Lendecke <vl@samba.org>
Mon, 28 Mar 2022 14:49:25 +0000 (16:49 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 29 Mar 2022 21:32:34 +0000 (21:32 +0000)
We don't need to check this here, create_file_default and callees take
care of this.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index 1677d997fe90c33a3b0fa8a2befb7837fc150c77..e7e39fe23ec291c980ac281feed6a7f4dd213eb3 100644 (file)
@@ -6873,11 +6873,6 @@ void reply_rmdir(struct smb_request *req)
                goto out;
        }
 
-       if (is_ntfs_stream_smb_fname(smb_dname)) {
-               reply_nterror(req, NT_STATUS_NOT_A_DIRECTORY);
-               goto out;
-       }
-
        status = SMB_VFS_CREATE_FILE(
                conn,                                   /* conn */
                req,                                    /* req */