Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
ptr++;
}
- if (!*local_interfaces) {
- DEBUG(0,("WARNING: no network interfaces found\n"));
+ if (*local_interfaces == NULL) {
+ const char **first_ptr = lpcfg_interfaces(lp_ctx);
+ if (first_ptr != NULL && *first_ptr != NULL) {
+ DBG_ERR("None of the interfaces listed in smb.conf "
+ "'interfaces = ...' seem to exist\n");
+ }
+ DBG_ERR("WARNING: no network interfaces found\n");
}
talloc_free(ifaces);
}
const char *iface_list_n_ip(struct interface *ifaces, int n)
{
struct interface *i;
-
+
for (i=ifaces;i && n;i=i->next)
n--;