From 8139838acf6a211a3984dac71babe7778148aa8b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Jul 2005 05:18:01 +0000 Subject: r8067: added a method for disabling the password prompt in programs that want cmdline credentials, but don't want a prompt if none are supplied (This used to be commit d7d7f7292b7032dcad6d6245510af229f12f7085) --- source4/lib/cmdline/popt_common.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source4/lib/cmdline/popt_common.c') diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c index b8f8a675eb..b7b7bdc286 100644 --- a/source4/lib/cmdline/popt_common.c +++ b/source4/lib/cmdline/popt_common.c @@ -181,7 +181,15 @@ struct poptOption popt_common_version[] = { */ -static BOOL dont_ask = False; +static BOOL dont_ask; + +/* + disable asking for a password +*/ +void popt_common_dont_ask(void) +{ + dont_ask = True; +} static void popt_common_credentials_callback(poptContext con, enum poptCallbackReason reason, -- cgit