summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-17 20:42:59 +0000
committerJeremy Allison <jra@samba.org>2001-07-17 20:42:59 +0000
commitc6b51500af5d4f09b4e08d57a7e930a0817e080b (patch)
treea0c7c8dbdc919ad346a70fbce25a4cf2c9b4a74c /source3
parent0cf44bb3476279e1db878b0793aa04b6bcc44a91 (diff)
downloadsamba-c6b51500af5d4f09b4e08d57a7e930a0817e080b.tar.gz
samba-c6b51500af5d4f09b4e08d57a7e930a0817e080b.tar.bz2
samba-c6b51500af5d4f09b4e08d57a7e930a0817e080b.zip
Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently. Jeremy. (This used to be commit f591ca9f25c54d3cdd0b76df472411e44c95ea47)
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd.c2
-rw-r--r--source3/smbd/server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 8b771bc452..7795958ed0 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -737,7 +737,7 @@ static void usage(char *pname)
strupper(global_myname);
break;
case 'l':
- slprintf(debugf,sizeof(debugf)-1, "%s.nmb",optarg);
+ slprintf(debugf, sizeof(debugf)-1, "%s/log.nmbd", optarg);
break;
case 'a':
append_log = True;
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 7947b9cbc0..6e9b9a4828 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -574,7 +574,7 @@ static void usage(char *pname)
case 'l':
specified_logfile = True;
- pstrcpy(debugf,optarg);
+ slprintf(debugf, sizeof(debugf)-1, "%s/log.smbd", optarg);
break;
case 'a':