Commit 776056e2 776056e2e3e7529fc64ca30bf055646fd6f11a2a by Sergey Poznyakoff

Bugfixes

* libmailutils/server/acl.c (_run_entry): Fix log output.
* mu/shell.c: Fix compilation without readline.
1 parent 42d2ff71
......@@ -673,19 +673,15 @@ _run_entry (void *item, void *data)
char *s;
if (ent->arg && expand_arg (ent->arg, rp, &s) == 0)
{
if (mu_debug_level_p (MU_DEBCAT_ACL, MU_DEBUG_TRACE9))
mu_debug_log_end ("%s", s);
mu_diag_output (MU_DIAG_INFO, "%s", s);
free (s);
}
else
{
if (mu_debug_level_p (MU_DEBCAT_ACL, MU_DEBUG_TRACE9))
{
debug_sockaddr (rp->sa, rp->salen);
mu_debug_log_nl ();
}
}
}
break;
case mu_acl_exec:
......
......@@ -412,13 +412,14 @@ shell_history (int argc, char **argv)
#else
# define finish_readline()
# define mutool_initialize_readline (const char *name)
# define mutool_initialize_readline(name)
char *
readline (char *prompt)
{
static size_t size = 0;
static char *buf = NULL;
size_t n;
if (prompt)
{
......