projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8df64fd
)
journalctl: fix error number in error message
author
Lennart Poettering
<lennart@poettering.net>
Thu, 25 Oct 2018 16:38:50 +0000
(18:38 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 25 Oct 2018 19:44:48 +0000
(21:44 +0200)
src/journal/journalctl.c
patch
|
blob
|
history
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index fac4eb044aaf07ad1b24e9f37874a271d7243c38..93466c3d4f8dc28b9c8801cf4c6649916e0d4640 100644
(file)
--- 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;