summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_context.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-26 12:46:08 +0200
committerMichael Adam <obnox@samba.org>2011-07-28 11:17:29 +0200
commitf764de64e39f62f84389c9df4f4a55f2ee01f857 (patch)
treea183cf30570bb5ba4771d4af86463353ba38aa2f /source3/libsmb/libsmb_context.c
parent4e41d38df3ad80a379899b611f7e2fac44d42155 (diff)
downloadsamba-f764de64e39f62f84389c9df4f4a55f2ee01f857.tar.gz
samba-f764de64e39f62f84389c9df4f4a55f2ee01f857.tar.bz2
samba-f764de64e39f62f84389c9df4f4a55f2ee01f857.zip
s3:libsmb: use lp_load_client() and lp_load_client_no_reinit() in libsmb_context
Diffstat (limited to 'source3/libsmb/libsmb_context.c')
-rw-r--r--source3/libsmb/libsmb_context.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c
index 766728963b..978fac902e 100644
--- a/source3/libsmb/libsmb_context.c
+++ b/source3/libsmb/libsmb_context.c
@@ -52,13 +52,11 @@ SMBC_module_init(void * punused)
/* Here we would open the smb.conf file if needed ... */
- lp_set_in_client(True);
-
home = getenv("HOME");
if (home) {
char *conf = NULL;
if (asprintf(&conf, "%s/.smb/smb.conf", home) > 0) {
- if (lp_load(conf, True, False, False, True)) {
+ if (lp_load_client(conf)) {
conf_loaded = True;
} else {
DEBUG(5, ("Could not load config file: %s\n",
@@ -76,7 +74,7 @@ SMBC_module_init(void * punused)
* defaults ...
*/
- if (!lp_load(get_dyn_CONFIGFILE(), True, False, False, True)) {
+ if (!lp_load_client(get_dyn_CONFIGFILE())) {
DEBUG(5, ("Could not load config file: %s\n",
get_dyn_CONFIGFILE()));
} else if (home) {
@@ -89,7 +87,7 @@ SMBC_module_init(void * punused)
if (asprintf(&conf,
"%s/.smb/smb.conf.append",
home) > 0) {
- if (!lp_load(conf, True, False, False, False)) {
+ if (!lp_load_client_no_reinit(conf)) {
DEBUG(10,
("Could not append config file: "
"%s\n",