smbd: realign args of get_real_filename() and friends
authorRalph Boehme <slow@samba.org>
Thu, 30 Apr 2020 15:20:49 +0000 (17:20 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:40 +0000 (19:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/filename.c
source3/smbd/proto.h

index 25f898abc82f930bb13ce561a86f062e250b1c7e..06a37fd6b0188004049e91f17d8f8626286798bb 100644 (file)
@@ -1652,8 +1652,10 @@ static int get_real_filename_full_scan(connection_struct *conn,
  fallback.
 ****************************************************************************/
 
-int get_real_filename(connection_struct *conn, const char *path,
-                     const char *name, TALLOC_CTX *mem_ctx,
+int get_real_filename(connection_struct *conn,
+                     const char *path,
+                     const char *name,
+                     TALLOC_CTX *mem_ctx,
                      char **found_name)
 {
        int ret;
@@ -1667,12 +1669,20 @@ int get_real_filename(connection_struct *conn, const char *path,
        mangled = mangle_is_mangled(name, conn->params);
 
        if (mangled) {
-               return get_real_filename_full_scan(conn, path, name, mangled,
-                                                  mem_ctx, found_name);
+               return get_real_filename_full_scan(conn,
+                                                  path,
+                                                  name,
+                                                  mangled,
+                                                  mem_ctx,
+                                                  found_name);
        }
 
        /* Try the vfs first to take advantage of case-insensitive stat. */
-       ret = SMB_VFS_GET_REAL_FILENAME(conn, path, name, mem_ctx, found_name);
+       ret = SMB_VFS_GET_REAL_FILENAME(conn,
+                                       path,
+                                       name,
+                                       mem_ctx,
+                                       found_name);
 
        /*
         * If the case-insensitive stat was successful, or returned an error
@@ -1683,7 +1693,11 @@ int get_real_filename(connection_struct *conn, const char *path,
                return ret;
        }
 
-       return get_real_filename_full_scan(conn, path, name, mangled, mem_ctx,
+       return get_real_filename_full_scan(conn,
+                                          path,
+                                          name,
+                                          mangled,
+                                          mem_ctx,
                                           found_name);
 }
 
index 2dd469a62134faee607f23ba183ea2314e555fa8..a611b1512155540784650d5d781ec51fbd41b5e9 100644 (file)
@@ -367,8 +367,10 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
                      uint32_t ucf_flags);
 NTSTATUS check_name(connection_struct *conn,
                        const struct smb_filename *smb_fname);
-int get_real_filename(connection_struct *conn, const char *path,
-                     const char *name, TALLOC_CTX *mem_ctx,
+int get_real_filename(connection_struct *conn,
+                     const char *path,
+                     const char *name,
+                     TALLOC_CTX *mem_ctx,
                      char **found_name);
 char *get_original_lcomp(TALLOC_CTX *ctx,
                        connection_struct *conn,