From ae15e93b424172ec31a6cb21c8e3430e5921dded Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 Apr 2022 13:24:19 -0700 Subject: [PATCH] s3: smbget: Fix auth_fn, order of //server/share parameters is mixed in prompt. Found by BUG: https://bugzilla.samba.org/show_bug.cgi?id=14831 Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider (cherry picked from commit f1765f91b015d64122e74c01c7c6d0984cc7af87) --- source3/utils/smbget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c index 19958f35afa..3e7c5687d83 100644 --- a/source3/utils/smbget.c +++ b/source3/utils/smbget.c @@ -129,7 +129,7 @@ static void get_auth_data(const char *srv, const char *shr, char *wg, int wglen, rc = asprintf(&prompt, "Password for [%s] connecting to //%s/%s: ", - un, shr, srv); + un, srv, shr); if (rc == -1) { return; } -- 2.32.0