git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a129501
)
r8067: added a method for disabling the password prompt in programs that want
author
Andrew Tridgell
<tridge@samba.org>
Sat, 2 Jul 2005 05:18:01 +0000
(
05:18
+0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/source/lib/cmdline/popt_common.c
b/source/lib/cmdline/popt_common.c
index b8f8a675eb8099efd3f203d4d775a7c6f52ebe68..b7b7bdc2860d88dd31cf08e076c5d2bb0536e8d9 100644
(file)
--- a/
source/lib/cmdline/popt_common.c
+++ b/
source/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,