summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-02 05:18:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:04 -0500
commit8139838acf6a211a3984dac71babe7778148aa8b (patch)
tree6c9a57bc2bae7228dde6a01e3f4ec71398561d7b
parent8283c40fdeedf60e054b2a12110382e1edc85e9c (diff)
downloadsamba-8139838acf6a211a3984dac71babe7778148aa8b.tar.gz
samba-8139838acf6a211a3984dac71babe7778148aa8b.tar.bz2
samba-8139838acf6a211a3984dac71babe7778148aa8b.zip
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)
-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,