svn commit: samba r12757 - in branches/SAMBA_3_0: .
examples/libsmbclient
derrell at samba.org
derrell at samba.org
Sat Jan 7 20:43:29 GMT 2006
Author: derrell
Date: 2006-01-07 20:43:28 +0000 (Sat, 07 Jan 2006)
New Revision: 12757
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12757
Log:
r12126 at cabra: derrell | 2006-01-03 15:21:36 -0500
added flag to not request authentication information
Modified:
branches/SAMBA_3_0/
branches/SAMBA_3_0/examples/libsmbclient/testbrowse.c
Changeset:
Property changes on: branches/SAMBA_3_0
___________________________________________________________________
Name: svk:merge
- 3a72dc49-98ff-0310-ab52-9b7ed7945d91:/local/samba3:12122
+ 3a72dc49-98ff-0310-ab52-9b7ed7945d91:/local/samba3:12126
Modified: branches/SAMBA_3_0/examples/libsmbclient/testbrowse.c
===================================================================
--- branches/SAMBA_3_0/examples/libsmbclient/testbrowse.c 2006-01-07 20:41:45 UTC (rev 12756)
+++ branches/SAMBA_3_0/examples/libsmbclient/testbrowse.c 2006-01-07 20:43:28 UTC (rev 12757)
@@ -30,6 +30,7 @@
{
int debug = 0;
int debug_stderr = 0;
+ int no_auth = 0;
int scan = 0;
int iterations = -1;
int again;
@@ -59,6 +60,10 @@
0, "Iterations", "integer"
},
{
+ "noauth", 'A', POPT_ARG_NONE, &no_auth,
+ 0, "Do not request authentication data", "integer"
+ },
+ {
NULL
}
};
@@ -82,9 +87,14 @@
return 1;
}
+ /* If we're scanning, do no requests for authentication data */
+ if (scan) {
+ no_auth = 1;
+ }
+
/* Set mandatory options (is that a contradiction in terms?) */
context->debug = debug;
- context->callbacks.auth_fn = (scan ? no_auth_data_fn : get_auth_data_fn);
+ context->callbacks.auth_fn = (no_auth ? no_auth_data_fn : get_auth_data_fn);
/* If we've been asked to log to stderr instead of stdout... */
if (debug_stderr) {
@@ -102,7 +112,6 @@
/* Tell the compatibility layer to use this context */
smbc_set_context(context);
-
if (scan)
{
for (;
More information about the samba-cvs
mailing list