From 6c767d1e1a1815fbd4d2b196fb92a0d85cfde5b2 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 10 Mar 2015 05:18:26 +0100 Subject: [PATCH] logs-show: fix check of loop_read_exact just a typo fix --- src/shared/logs-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index d3ee13988..5a3ab3da3 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -1165,7 +1165,7 @@ static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) { r = loop_read_exact(fd, buf, 36, false); safe_close(fd); - if (k < 0) + if (r < 0) _exit(EXIT_FAILURE); k = send(pair[1], buf, 36, MSG_NOSIGNAL); -- 2.30.2