From ad1546ecb0a21bf3ad4ea92e733c1040093c2952 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Sun, 25 Apr 2021 05:02:56 -0400 Subject: [PATCH] ifchd: Minor corrections in informative prints --- src/ifchd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifchd.c b/src/ifchd.c index 6f56721..f21a6fb 100644 --- a/src/ifchd.c +++ b/src/ifchd.c @@ -264,7 +264,7 @@ int perform_domain(const char str[static 1], size_t len) client_config.interface, __func__); } ret = write_resolve_conf(); - if (ret <= 0) + if (ret == 0) log_line("Added DNS domain: '%s'", str); return ret; } @@ -323,10 +323,10 @@ static void process_client_socket(void) int ebr = execute_buffer(buf); if (ebr < 0) { - inform_execute('-'); if (ebr == -99) - suicide("%s: (%s) received invalid commands: '%s'", + suicide("%s: (%s) unrecoverable failure in command sequence: '%s'", client_config.interface, __func__, buf); + inform_execute('-'); } else inform_execute('+'); }