s3: smbd: dfs: Cleanup, reformat calls to parse_msdfs_symlink()
authorJeremy Allison <jra@samba.org>
Tue, 28 Jan 2020 00:29:46 +0000 (16:29 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 19 Feb 2020 06:19:36 +0000 (06:19 +0000)
Make parameter easier to change.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14282

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit d22b0d907252939c2ded9d73cc67dbbf8bb57fb7)

source3/smbd/msdfs.c

index 75ad2d9223b40b33f61fa07614e0c2d8910386c4..46c08bd43de302429f7de5afc78150f97c2b30b5 100644 (file)
@@ -1099,7 +1099,11 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
                        return NT_STATUS_NO_MEMORY;
                }
 
-               if (!parse_msdfs_symlink(ctx, snum, tmp, &ref, &refcount)) {
+               if (!parse_msdfs_symlink(ctx,
+                               snum,
+                               tmp,
+                               &ref,
+                               &refcount)) {
                        TALLOC_FREE(frame);
                        return NT_STATUS_INVALID_PARAMETER;
                }
@@ -1170,7 +1174,9 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
        }
 
        /* We know this is a valid dfs link. Parse the targetpath. */
-       if (!parse_msdfs_symlink(ctx, snum, targetpath,
+       if (!parse_msdfs_symlink(ctx,
+                               snum,
+                               targetpath,
                                &jucn->referral_list,
                                &jucn->referral_count)) {
                DEBUG(3,("get_referred_path: failed to parse symlink "
@@ -1742,7 +1748,8 @@ static int form_junctions(TALLOC_CTX *ctx,
                if (is_msdfs_link_internal(ctx,
                                        conn,
                                        smb_dname, &link_target)) {
-                       if (parse_msdfs_symlink(ctx, snum,
+                       if (parse_msdfs_symlink(ctx,
+                                       snum,
                                        link_target,
                                        &jucn[cnt].referral_list,
                                        &jucn[cnt].referral_count)) {