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 | a56ca9e2a41449c717605c3a7f9a4bf5b7effba9 (patch) | |
tree | d43ee6be6d06b9a1e92806c1967b6f526b495386 /source3 | |
parent | cade42c05b4d050f0b222594e1d1ccc13097c339 (diff) | |
download | samba-a56ca9e2a41449c717605c3a7f9a4bf5b7effba9.tar.gz samba-a56ca9e2a41449c717605c3a7f9a4bf5b7effba9.tar.bz2 samba-a56ca9e2a41449c717605c3a7f9a4bf5b7effba9.zip |
Added support for SERVICESF shared variable to change configuration file
used in lp_load().
(This used to be commit 4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbwrapper/smbw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index 51e4b4cb65..65a70c9178 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/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"); |