summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-26 15:40:06 +0000
committerGerald Carter <jerry@samba.org>2004-03-26 15:40:06 +0000
commitbfa1b2a8bdd785af576c8706e8f27e9448ef94b5 (patch)
tree2f2e9f5eac6386daa3b653e18f7f3bb00b88db9a /source3/client
parent2732b702fb956169efb7096a8305b677b56b8706 (diff)
downloadsamba-bfa1b2a8bdd785af576c8706e8f27e9448ef94b5.tar.gz
samba-bfa1b2a8bdd785af576c8706e8f27e9448ef94b5.tar.bz2
samba-bfa1b2a8bdd785af576c8706e8f27e9448ef94b5.zip
source code fix for bug 1095 -- honor the '-l' option
(This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 214b787297..1da35fcc43 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2853,6 +2853,7 @@ static int do_message_op(void)
int main(int argc,char *argv[])
{
extern BOOL AllowDebugChange;
+ extern BOOL override_logfile;
pstring base_directory;
int opt;
pstring query_host;
@@ -2989,11 +2990,14 @@ static int do_message_op(void)
/* save the workgroup...
- FIXME!! do we need to do tyhis for other options as well
+ FIXME!! do we need to do this for other options as well
(or maybe a generic way to keep lp_load() from overwriting
everything)? */
- fstrcpy( new_workgroup, lp_workgroup() );
+ fstrcpy( new_workgroup, lp_workgroup() );
+
+ if ( override_logfile )
+ setup_logging( lp_logfile(), False );
if (!lp_load(dyn_CONFIGFILE,True,False,False)) {
fprintf(stderr, "%s: Can't load %s - run testparm to debug it\n",