]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Fix indentation in reply_ntrename()
authorVolker Lendecke <vl@samba.org>
Sun, 14 Sep 2025 18:04:46 +0000 (11:04 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:29 +0000 (17:33 +0000)
Next patch will modify this section, don't confuse
clang-format. Review with git show -w.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb1_nttrans.c

index c793c359dc97b11405935e665eb01e193e4c924c..c956e54760cbd87a8388df4186b9db6c509162ac 100644 (file)
@@ -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)) {