From: Volker Lendecke Date: Sun, 14 Sep 2025 18:04:46 +0000 (-0700) Subject: smbd: Fix indentation in reply_ntrename() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35160093a2c5d1603cb2d97325a9786941e7635;p=thirdparty%2Fsamba.git smbd: Fix indentation in reply_ntrename() Next patch will modify this section, don't confuse clang-format. Review with git show -w. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb1_nttrans.c b/source3/smbd/smb1_nttrans.c index c793c359dc9..c956e54760c 100644 --- a/source3/smbd/smb1_nttrans.c +++ b/source3/smbd/smb1_nttrans.c @@ -1568,42 +1568,42 @@ void reply_ntrename(struct smb_request *req) smb_fname_str_dbg(smb_fname_new))); switch(rename_type) { - case RENAME_FLAG_RENAME: - status = rename_internals(ctx, - conn, - req, - src_dirfsp, - smb_fname_old, - smb_fname_new, - dst_original_lcomp, - attrs, - false, - DELETE_ACCESS); - break; - case RENAME_FLAG_HARD_LINK: - status = hardlink_internals(ctx, - conn, - req, - false, - smb_fname_old, - smb_fname_new); - break; - case RENAME_FLAG_COPY: - status = copy_internals(ctx, - conn, - req, - src_dirfsp, - smb_fname_old, - dst_dirfsp, - smb_fname_new, - attrs); - break; - case RENAME_FLAG_MOVE_CLUSTER_INFORMATION: - status = NT_STATUS_INVALID_PARAMETER; - break; - default: - status = NT_STATUS_ACCESS_DENIED; /* Default error. */ - break; + case RENAME_FLAG_RENAME: + status = rename_internals(ctx, + conn, + req, + src_dirfsp, + smb_fname_old, + smb_fname_new, + dst_original_lcomp, + attrs, + false, + DELETE_ACCESS); + break; + case RENAME_FLAG_HARD_LINK: + status = hardlink_internals(ctx, + conn, + req, + false, + smb_fname_old, + smb_fname_new); + break; + case RENAME_FLAG_COPY: + status = copy_internals(ctx, + conn, + req, + src_dirfsp, + smb_fname_old, + dst_dirfsp, + smb_fname_new, + attrs); + break; + case RENAME_FLAG_MOVE_CLUSTER_INFORMATION: + status = NT_STATUS_INVALID_PARAMETER; + break; + default: + status = NT_STATUS_ACCESS_DENIED; /* Default error. */ + break; } if (!NT_STATUS_IS_OK(status)) {