From: Andreas Schneider Date: Tue, 14 Mar 2017 15:12:20 +0000 (+0100) Subject: s3:vfs_expand_msdfs: Do not open the remote address as a file X-Git-Tag: tdb-1.3.13~461 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1115f152de9ec25bc9e5e499874b4a7c92c888c0;p=thirdparty%2Fsamba.git 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 --- 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));