From 4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 13 Dec 2000 04:19:48 +0000 Subject: [PATCH] Added support for SERVICESF shared variable to change configuration file used in lp_load(). --- source/smbwrapper/smbw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); -- 2.11.4.GIT