diff options
author | Tim Potter <tpot@samba.org> | 2000-12-13 04:19:48 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-13 04:19:48 +0000 |
commit | 4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db (patch) | |
tree | 0bd4265413109c81322287e35302ad09fb674a9b /source/smbwrapper/smbw.c | |
parent | f0d7867801e3f78bfc55fdb36ca965e35457f51b (diff) | |
download | samba-4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db.tar.gz samba-4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db.tar.xz samba-4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db.zip |
Added support for SERVICESF shared variable to change configuration file
used in lp_load().
Diffstat (limited to 'source/smbwrapper/smbw.c')
-rw-r--r-- | source/smbwrapper/smbw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c index 51e4b4cb650..65a70c91783 100644 --- a/source/smbwrapper/smbw.c +++ b/source/smbwrapper/smbw.c @@ -79,6 +79,10 @@ void smbw_init(void) load_interfaces(); + if ((p=smbw_getshared("SERVICESF"))) { + pstrcpy(servicesf, p); + } + lp_load(servicesf,True,False,False); get_myname(global_myname); @@ -257,7 +261,6 @@ static char *smbw_find_workgroup(void) char *p; struct in_addr *ip_list = NULL; int count = 0; - int i; /* first off see if an existing workgroup name exists */ p = smbw_getshared("WORKGROUP"); |