diff options
author | Martin Pool <mbp@samba.org> | 2001-11-19 02:49:53 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-11-19 02:49:53 +0000 |
commit | 79ec88f0da40faebe1e587f1b3e87b5f2b184f58 (patch) | |
tree | a23afbb4a9526bc68e30350d800a9a086b735572 /source/nmbd | |
parent | 91e07a7fdc47b2baf42fc06e77d1e1d883111668 (diff) | |
download | samba-79ec88f0da40faebe1e587f1b3e87b5f2b184f58.tar.gz samba-79ec88f0da40faebe1e587f1b3e87b5f2b184f58.tar.xz samba-79ec88f0da40faebe1e587f1b3e87b5f2b184f58.zip |
Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 3c93f306b8d..de673b6462c 100644 --- a/source/nmbd/nmbd.c +++ b/source/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': |