r8067: added a method for disabling the password prompt in programs that want
authorAndrew Tridgell <tridge@samba.org>
Sat, 2 Jul 2005 05:18:01 +0000 (05:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:04 +0000 (13:19 -0500)
cmdline credentials, but don't want a prompt if none are supplied

source/lib/cmdline/popt_common.c

index b8f8a675eb8099efd3f203d4d775a7c6f52ebe68..b7b7bdc2860d88dd31cf08e076c5d2bb0536e8d9 100644 (file)
@@ -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,