mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
journalctl: fix error number in error message
This commit is contained in:
parent
8df64fd01d
commit
e5b2d45c1d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user