summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 16:46:32 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 16:46:32 +0100
commitef915eff1690bfded651bf6fcef02a977d3d676b (patch)
tree1a7d23c3d388e811262800fba0d223effd81dba3 /source4/lib
parent8f763308bc191855356cfec758e939270843468d (diff)
downloadsamba-ef915eff1690bfded651bf6fcef02a977d3d676b.tar.gz
samba-ef915eff1690bfded651bf6fcef02a977d3d676b.tar.bz2
samba-ef915eff1690bfded651bf6fcef02a977d3d676b.zip
Move check of SMB_CONF_PATH to loadparm code.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/cmdline/popt_common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c
index 96d8b8b40a..563bc0f399 100644
--- a/source4/lib/cmdline/popt_common.c
+++ b/source4/lib/cmdline/popt_common.c
@@ -23,7 +23,6 @@
#include "version.h"
#include "lib/cmdline/popt_common.h"
#include "param/param.h"
-#include "dynconfig/dynconfig.h"
/* Handle command line options:
* -d,--debuglevel
@@ -63,10 +62,7 @@ static void popt_samba_callback(poptContext con,
if (reason == POPT_CALLBACK_REASON_POST) {
if (lp_configfile(cmdline_lp_ctx) == NULL) {
- if (getenv("SMB_CONF_PATH"))
- lp_load(cmdline_lp_ctx, getenv("SMB_CONF_PATH"));
- else
- lp_load(cmdline_lp_ctx, dyn_CONFIGFILE);
+ lp_load_default(cmdline_lp_ctx);
}
/* Hook any 'every Samba program must do this, after
* the smb.conf is setup' functions here */