[PATCH] smbcacls: parse config file argument prior to load

David Disseldorp ddiss at samba.org
Mon Jul 7 07:24:19 MDT 2014


Fixes usage with the common "-s|--configfile" parameter.

Signed-off-by: David Disseldorp <ddiss at samba.org>
---
 source3/utils/smbcacls.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 47d75fe..c771225 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -1408,8 +1408,6 @@ int main(int argc, char *argv[])
 
 	setlinebuf(stdout);
 
-	lp_load_global(get_dyn_CONFIGFILE());
-	load_interfaces();
 
 	auth_info = user_auth_info_init(frame);
 	if (auth_info == NULL) {
@@ -1480,6 +1478,9 @@ int main(int argc, char *argv[])
 		return -1;
 	}
 
+	lp_load_global(get_dyn_CONFIGFILE());
+	load_interfaces();
+
 	filename = talloc_strdup(frame, poptGetArg(pc));
 	if (!filename) {
 		return -1;
-- 
1.8.4.5



More information about the samba-technical mailing list