From 84f0ae0cb82aa6f9a77a32e99f7a37fe0a9a6bb0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 18 May 2020 11:33:13 -0600 Subject: [PATCH] Use PACKAGE_VERSION instead of 0.1 as the client and server version. --- logsrvd/logsrvd.c | 2 +- logsrvd/sendlog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logsrvd/logsrvd.c b/logsrvd/logsrvd.c index e27859b50..c34881323 100644 --- a/logsrvd/logsrvd.c +++ b/logsrvd/logsrvd.c @@ -83,7 +83,7 @@ TAILQ_HEAD(connection_list, connection_closure); static struct connection_list connections = TAILQ_HEAD_INITIALIZER(connections); static struct listener_list listeners = TAILQ_HEAD_INITIALIZER(listeners); -static const char server_id[] = "Sudo Audit Server 0.1"; +static const char server_id[] = "Sudo Audit Server " PACKAGE_VERSION; static const char *conf_file = _PATH_SUDO_LOGSRVD_CONF; static double random_drop; diff --git a/logsrvd/sendlog.c b/logsrvd/sendlog.c index 854b16e80..bd3251292 100644 --- a/logsrvd/sendlog.c +++ b/logsrvd/sendlog.c @@ -329,7 +329,7 @@ fmt_client_hello(struct client_closure *closure) debug_decl(fmt_client_hello, SUDO_DEBUG_UTIL); sudo_debug_printf(SUDO_DEBUG_INFO, "%s: sending ClientHello", __func__); - hello_msg.client_id = "Sendlog Version 0.1"; + hello_msg.client_id = "Sudo Sendlog " PACKAGE_VERSION; /* Schedule ClientMessage */ client_msg.hello_msg = &hello_msg;