mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbcacls: parse config file argument prior to load
Fixes usage with the common "-s|--configfile" parameter. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jul 7 23:30:50 CEST 2014 on sn-devel-104
This commit is contained in:
parent
f0adcf33b8
commit
49b500a61f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user