From 19cfa3e604b5bb8ffa155182d6c24a2fe883e6da Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 2 Mar 2012 13:07:09 +1100 Subject: [PATCH 1/1] s3-rpcclient: Ensure interfaces are loaded after smb.conf This ensures that the interfaces line in the smb.conf is honoured. Andrew Bartlett --- source3/rpcclient/rpcclient.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index ff4354f8189..43df6723fcb 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -956,8 +956,6 @@ out_free: poptFreeContext(pc); - load_interfaces(); - if (!init_names()) { result = 1; goto done; @@ -968,6 +966,9 @@ out_free: if (!lp_load_global(get_dyn_CONFIGFILE())) fprintf(stderr, "Can't load %s\n", get_dyn_CONFIGFILE()); + /* We must load interfaces after we load the smb.conf */ + load_interfaces(); + /* * Get password * from stdin if necessary -- 2.34.1