summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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':