diff options
author | Jeremy Allison <jra@samba.org> | 2001-07-17 20:42:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-07-17 20:42:59 +0000 |
commit | f591ca9f25c54d3cdd0b76df472411e44c95ea47 (patch) | |
tree | 723cd4de76205e3cf7a7d4bcc7c4a998b5fa0975 | |
parent | 8a2f6fbacd275acc7b356169f4022df4860a813e (diff) | |
download | samba-f591ca9f25c54d3cdd0b76df472411e44c95ea47.tar.gz samba-f591ca9f25c54d3cdd0b76df472411e44c95ea47.tar.xz samba-f591ca9f25c54d3cdd0b76df472411e44c95ea47.zip |
Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently.
Jeremy.
-rw-r--r-- | source/nmbd/nmbd.c | 2 | ||||
-rw-r--r-- | source/smbd/server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 8b771bc4524..7795958ed08 100644 --- a/source/nmbd/nmbd.c +++ b/source/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/source/smbd/server.c b/source/smbd/server.c index 7947b9cbc05..6e9b9a48284 100644 --- a/source/smbd/server.c +++ b/source/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': |