From: Lennart Poettering Date: Thu, 25 Oct 2018 16:38:50 +0000 (+0200) Subject: journalctl: fix error number in error message X-Git-Tag: v240~467^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5b2d45c1d347a5ca2eeab8d97ef72b541f98922;p=thirdparty%2Fsystemd.git journalctl: fix error number in error message --- 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;