summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-12-13 04:19:48 +0000
committerTim Potter <tpot@samba.org>2000-12-13 04:19:48 +0000
commit4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db (patch)
tree0bd4265413109c81322287e35302ad09fb674a9b /source/smbwrapper/smbw.c
parentf0d7867801e3f78bfc55fdb36ca965e35457f51b (diff)
downloadsamba-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.c5
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");