From c6b51500af5d4f09b4e08d57a7e930a0817e080b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 17 Jul 2001 20:42:59 +0000 Subject: Fixes from Jens-Uwe.Walther@force.de to make the -l option behave consistently. Jeremy. (This used to be commit f591ca9f25c54d3cdd0b76df472411e44c95ea47) --- source3/nmbd/nmbd.c | 2 +- source3/smbd/server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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': -- cgit