From e5b2d45c1d347a5ca2eeab8d97ef72b541f98922 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 25 Oct 2018 18:38:50 +0200 Subject: [PATCH] journalctl: fix error number in error message --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index fac4eb044aa..93466c3d4f8 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1971,7 +1971,7 @@ static int send_signal_and_wait(int sig, const char *watch_path) { /* See if a sync happened by now. */ r = read_timestamp_file(watch_path, &tstamp); if (r < 0 && r != -ENOENT) - return log_error_errno(errno, "Failed to read %s: %m", watch_path); + return log_error_errno(r, "Failed to read %s: %m", watch_path); if (r >= 0 && tstamp >= start) return 0; -- 2.47.3