summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-22 17:17:46 +0200
committerMichael Adam <obnox@samba.org>2011-07-28 11:17:27 +0200
commit0c55a7606fe5ff9a1cf0be13a13a3a657cdd1e53 (patch)
tree45458df09cd770d1ac62b539a544fab43fbe20e4
parent0b21c7750f360da466045587d1d7872a80d2153c (diff)
downloadsamba-0c55a7606fe5ff9a1cf0be13a13a3a657cdd1e53.tar.gz
samba-0c55a7606fe5ff9a1cf0be13a13a3a657cdd1e53.tar.bz2
samba-0c55a7606fe5ff9a1cf0be13a13a3a657cdd1e53.zip
s3:smbclient: use lp_load_client()
-rw-r--r--source3/client/client.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index e6fffcbcfd..44a151e78f 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -5301,8 +5301,6 @@ static int do_message_op(struct user_auth_info *a_info)
pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0);
poptSetOtherOptionHelp(pc, "service <password>");
- lp_set_in_client(true); /* Make sure that we tell lp_load we are */
-
while ((opt = poptGetNextOpt(pc)) != -1) {
/* if the tar option has been called previouslt, now we need to eat out the leftovers */
@@ -5433,7 +5431,7 @@ static int do_message_op(struct user_auth_info *a_info)
if ( override_logfile )
setup_logging( lp_logfile(), DEBUG_FILE );
- if (!lp_load(get_dyn_CONFIGFILE(),true,false,false,true)) {
+ if (!lp_load_client(get_dyn_CONFIGFILE())) {
fprintf(stderr, "%s: Can't load %s - run testparm to debug it\n",
argv[0], get_dyn_CONFIGFILE());
}