summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-11-19 02:49:53 +0000
committerMartin Pool <mbp@samba.org>2001-11-19 02:49:53 +0000
commitf741f656737f4ec46cd318e986b6bf412ed309d2 (patch)
treefb2b1999441e25ae5db177631dd42abb051a9bce /source3/nmbd
parenta1b9de0b9872b91574e75bb360d49b887a072389 (diff)
downloadsamba-f741f656737f4ec46cd318e986b6bf412ed309d2.tar.gz
samba-f741f656737f4ec46cd318e986b6bf412ed309d2.tar.bz2
samba-f741f656737f4ec46cd318e986b6bf412ed309d2.zip
Store some path names in global variables initialized to configure
default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 3c93f306b8..de673b6462 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -1,6 +1,5 @@
/*
Unix SMB/Netbios implementation.
- Version 1.9.
NBT netbios routines and daemon - version 2
Copyright (C) Andrew Tridgell 1994-1998
@@ -28,7 +27,6 @@
#include "includes.h"
extern pstring debugf;
-pstring servicesf = CONFIGFILE;
int ClientNMB = -1;
int ClientDGRAM = -1;
@@ -276,9 +274,9 @@ static BOOL reload_nmbd_services(BOOL test)
{
pstring fname;
pstrcpy( fname,lp_configfile());
- if (file_exist(fname,NULL) && !strcsequal(fname,servicesf))
+ if (file_exist(fname,NULL) && !strcsequal(fname,dyn_CONFIGFILE))
{
- pstrcpy(servicesf,fname);
+ pstrcpy(dyn_CONFIGFILE,fname);
test = False;
}
}
@@ -286,7 +284,7 @@ static BOOL reload_nmbd_services(BOOL test)
if ( test && !lp_file_list_changed() )
return(True);
- ret = lp_load( servicesf, True , False, False);
+ ret = lp_load( dyn_CONFIGFILE, True , False, False);
/* perhaps the config filename is now set */
if ( !test )
@@ -679,7 +677,7 @@ static void usage(char *pname)
TimeInit();
- slprintf(debugf, sizeof(debugf)-1, "%s/log.nmbd", LOGFILEBASE);
+ slprintf(debugf, sizeof(debugf)-1, "%s/log.nmbd", dyn_LOGFILEBASE);
setup_logging( argv[0], False );
#ifdef LMHOSTSFILE
@@ -720,7 +718,7 @@ static void usage(char *pname)
switch (opt)
{
case 's':
- pstrcpy(servicesf,optarg);
+ pstrcpy(dyn_CONFIGFILE, optarg);
break;
case 'N':
case 'B':