On Thu, Feb 08, 2018 at 06:06:47PM +0000, Jean-Louis Martineau wrote: > add: > debug-auth 9 > to amanda.conf and retry > Post the planner debug file. > > For the failing client, do amandad is executed, post the amandad debug files. > > Jean-Louis
As promised I an posting here a summary of the private emails exchanged between me and Jean-Louis. After posting my debug logs Jean-Louis have quickly identified a quick fix. The patch is attached, in case other people may find it usefull before a new release of amanda. Kind regards Jose M Calhariz -- -- Não tenha pressa, mas não perca tempo --José Saramago
diff --git a/common-src/protocol.c b/common-src/protocol.c index 1ab7294..972ef4e 100644 --- a/common-src/protocol.c +++ b/common-src/protocol.c @@ -179,8 +179,8 @@ protocol_sendreq( void * datap) { proto_t *p; - char *platform = NULL; - char *distro = NULL; + static char *platform = NULL; + static char *distro = NULL; p = g_malloc(sizeof(proto_t)); p->state = s_sendreq; @@ -209,7 +209,10 @@ protocol_sendreq( proto_debug(1, _("protocol: security_connect: host %s -> p %p\n"), hostname, p); - get_platform_and_distro(&platform, &distro); + if (!platform && !distro) { + get_platform_and_distro(&platform, &distro); + } + if (distro != NULL && !g_str_equal(distro, "mac") && #if defined HAVE_FUNC_GETSERVBYNAME_R_4 || defined HAVE_FUNC_GETSERVBYNAME_R_5 || defined HAVE_FUNC_GETSERVBYNAME_R_6 @@ -243,8 +246,6 @@ protocol_sendreq( security_connect(p->security_driver, p->hostname, p->conf_fn, connect_callbackX, p, p->datap); } - g_free(platform); - g_free(distro); } static gpointer