From: Volker Lendecke Date: Mon, 28 Mar 2022 14:49:25 +0000 (+0200) Subject: smbd: Simplify reply_rmdir() X-Git-Tag: tevent-0.12.0~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50bac24665ba858edc2e6a3e66422b6eee4cdd39;p=thirdparty%2Fsamba.git smbd: Simplify reply_rmdir() We don't need to check this here, create_file_default and callees take care of this. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 1677d997fe9..e7e39fe23ec 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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 */