summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/cmdline/popt_common.c10
1 files changed, 9 insertions, 1 deletions
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,