summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-02-12 14:57:55 +0000
committerAndrew Tridgell <tridge@samba.org>1998-02-12 14:57:55 +0000
commitc04291ae995b65935ef9581bfd95eebaf4354c1d (patch)
tree1308908d99d41bb88668f25f100978654d01fd53
parent6d488ae796dbd04cb421204bdf9a2a4fa6a54052 (diff)
downloadsamba-c04291ae995b65935ef9581bfd95eebaf4354c1d.tar.gz
samba-c04291ae995b65935ef9581bfd95eebaf4354c1d.tar.bz2
samba-c04291ae995b65935ef9581bfd95eebaf4354c1d.zip
make the initial logfile names consistent. This should mean that smbd
starts with log.smb and nmbd starts with log.nmb. It also gets rid of the "log." when using the log.%m construct as %m expands to smb before a client connects. (This used to be commit b7712a0a6d0afeef6239d5af61cba677eebb247b)
-rw-r--r--source3/nmbd/nmbd.c2
-rw-r--r--source3/smbd/server.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index b6e4244cd0..d42580bcbd 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -204,7 +204,7 @@ BOOL reload_services(BOOL test)
BOOL ret;
extern fstring remote_machine;
- strcpy( remote_machine, "nmbd" );
+ strcpy( remote_machine, "nmb" );
if ( lp_loaded() )
{
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 0a6a05fdbf..c2880b0e89 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -5239,6 +5239,8 @@ static void usage(char *pname)
strcpy(debugf,SMBLOGFILE);
+ strcpy(remote_machine, "smb");
+
setup_logging(argv[0],False);
charset_initialise();