svn commit: samba r8067 - in branches/SAMBA_4_0/source/lib/cmdline:
.
tridge at samba.org
tridge at samba.org
Sat Jul 2 05:18:01 GMT 2005
Author: tridge
Date: 2005-07-02 05:18:01 +0000 (Sat, 02 Jul 2005)
New Revision: 8067
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8067
Log:
added a method for disabling the password prompt in programs that want
cmdline credentials, but don't want a prompt if none are supplied
Modified:
branches/SAMBA_4_0/source/lib/cmdline/popt_common.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/cmdline/popt_common.c
===================================================================
--- branches/SAMBA_4_0/source/lib/cmdline/popt_common.c 2005-07-02 01:23:21 UTC (rev 8066)
+++ branches/SAMBA_4_0/source/lib/cmdline/popt_common.c 2005-07-02 05:18:01 UTC (rev 8067)
@@ -181,8 +181,16 @@
*/
-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,
const struct poptOption *opt,
More information about the samba-cvs
mailing list