From be3f182c7bda75d531fa60c6d08a734f0098f2cc Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 14 Mar 2017 16:12:20 +0100 Subject: [PATCH] s3:vfs_expand_msdfs: Do not open the remote address as a file The arguments get passed in the wrong order to read_target_host(). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12687 Signed-off-by: Andreas Schneider (cherry picked from commit 1115f152de9ec25bc9e5e499874b4a7c92c888c0) --- source3/modules/vfs_expand_msdfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c index ffbfa333bad..e42d0098b32 100644 --- a/source3/modules/vfs_expand_msdfs.c +++ b/source3/modules/vfs_expand_msdfs.c @@ -147,8 +147,7 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx, return NULL; } - targethost = read_target_host( - ctx, raddr, mapfilename); + targethost = read_target_host(ctx, mapfilename, raddr); if (targethost == NULL) { DEBUG(1, ("Could not expand target host from file %s\n", mapfilename)); -- 2.12.0