]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: realign stat_cache_add() args in unix_convert()
authorRalph Boehme <slow@samba.org>
Tue, 5 May 2020 11:00:00 +0000 (13:00 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:43 +0000 (19:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/filename.c

index 7f11239c77d55f3d68e18f97bb51b80f2ad3a2aa..b93c0ee6f45b57901b0bc01877e01239b972ef58 100644 (file)
@@ -929,7 +929,8 @@ static NTSTATUS unix_convert_step(struct uc_state *state)
         * or wildcard components as this can change the size.
         */
        if(!state->component_was_mangled && !state->name_has_wildcard) {
-               stat_cache_add(state->orig_path, state->dirpath,
+               stat_cache_add(state->orig_path,
+                              state->dirpath,
                               state->conn->case_sensitive);
        }
 
@@ -1185,7 +1186,8 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
                                goto fail;
                        }
                        /* Add the path (not including the stream) to the cache. */
-                       stat_cache_add(state->orig_path, state->smb_fname->base_name,
+                       stat_cache_add(state->orig_path,
+                                      state->smb_fname->base_name,
                                       state->conn->case_sensitive);
                        DBG_DEBUG("Conversion of base_name finished "
                                  "[%s] -> [%s]\n",
@@ -1346,7 +1348,8 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
         */
 
        if(!state->component_was_mangled && !state->name_has_wildcard) {
-               stat_cache_add(state->orig_path, state->smb_fname->base_name,
+               stat_cache_add(state->orig_path,
+                              state->smb_fname->base_name,
                               state->conn->case_sensitive);
        }