From: Stefan Metzmacher Date: Mon, 11 Nov 2019 12:58:37 +0000 (+0100) Subject: s3:net: avoid prompting for a password if --use-ccache is used X-Git-Tag: ldb-2.2.0~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6e0582eaa0fbc7b1cb1747f3f3aa395b1cd83b3;p=thirdparty%2Fsamba.git s3:net: avoid prompting for a password if --use-ccache is used Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c index 156e9ef99a5..d1eefa3b477 100644 --- a/source3/utils/net_util.c +++ b/source3/utils/net_util.c @@ -466,6 +466,10 @@ const char *net_prompt_pass(struct net_context *c, const char *user) return NULL; } + if (c->opt_ccache) { + return NULL; + } + if (asprintf(&prompt, _("Enter %s's password:"), user) == -1) { return NULL; }