From: Jeremy Allison Date: Tue, 28 Jan 2020 00:29:46 +0000 (-0800) Subject: s3: smbd: dfs: Cleanup, reformat calls to parse_msdfs_symlink() X-Git-Tag: ldb-2.1.1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d22b0d907252939c2ded9d73cc67dbbf8bb57fb7;p=thirdparty%2Fsamba.git s3: smbd: dfs: Cleanup, reformat calls to parse_msdfs_symlink() Make parameter easier to change. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 8f355d3a2c9..debc38a5307 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -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 " @@ -1763,7 +1769,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)) {