summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-01-27 16:29:46 -0800
committerRalph Boehme <slow@samba.org>2020-02-18 21:08:32 +0000
commitd22b0d907252939c2ded9d73cc67dbbf8bb57fb7 (patch)
treec10423a8e792bc6687d51955907ab37a89d67268
parent0450593e38d62fe0b925d789486517ade31fe3c6 (diff)
downloadsamba-d22b0d907252939c2ded9d73cc67dbbf8bb57fb7.tar.gz
s3: smbd: dfs: Cleanup, reformat calls to parse_msdfs_symlink()
Make parameter easier to change. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--source3/smbd/msdfs.c13
1 files changed, 10 insertions, 3 deletions
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)) {