From f7e093572797e09d7bd78db2d452914092b68c5a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 1 May 2007 03:25:17 +0000 Subject: r22622: make it possible to pass the config file via 'SMB_CONF_PATH' envvar very usefull for make testenv! this makes it also possible to pass a config file to smbscript metze (This used to be commit f65fcd764b656ba9953d88dc7b002e4977af5011) --- source4/lib/cmdline/popt_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/lib/cmdline') diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c index 1eeb797e6e..1752f43a84 100644 --- a/source4/lib/cmdline/popt_common.c +++ b/source4/lib/cmdline/popt_common.c @@ -69,6 +69,10 @@ static void popt_common_callback(poptContext con, /* and logging */ setup_logging(pname, DEBUG_STDOUT); + + if (getenv("SMB_CONF_PATH")) { + lp_set_cmdline("config file", getenv("SMB_CONF_PATH")); + } return; } -- cgit