popt: Use SMB_CONF_PATH environment var if no other configfile is set.
commit92a9c6c56fa90aead3b7f4a07bf4f3973ba23555
authorKai Blin <kai@samba.org>
Mon, 4 Feb 2008 15:16:59 +0000 (4 16:16 +0100)
committerKai Blin <kai@samba.org>
Mon, 4 Feb 2008 16:41:23 +0000 (4 17:41 +0100)
tree02e3913ccf8ee44bd9482c17c8052a6b9e03535e
parentbe57475cd1d5db60481e74000dc7d65002742376
popt: Use SMB_CONF_PATH environment var if no other configfile is set.

Now --configfile (or -s) will have precedence, if that's not given
SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default
value is used.

Thanks to Michael for his comments.
source/dynconfig.c
source/include/dynconfig.h
source/lib/popt_common.c