chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fstab-generator: Do not check deviceless filesystems
[elogind.git]
/
src
/
shared
/
logs-show.c
diff --git
a/src/shared/logs-show.c
b/src/shared/logs-show.c
index 944d6856cd8315a785d39817a093a13d8c71c4cf..5a3ab3da3ee505f00f2bd235de278f82cbe1a21c 100644
(file)
--- a/
src/shared/logs-show.c
+++ b/
src/shared/logs-show.c
@@
-1163,9
+1163,9
@@
static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) {
if (fd < 0)
_exit(EXIT_FAILURE);
-
k = loop_read
(fd, buf, 36, false);
+
r = loop_read_exact
(fd, buf, 36, false);
safe_close(fd);
- if (
k != 36
)
+ if (
r < 0
)
_exit(EXIT_FAILURE);
k = send(pair[1], buf, 36, MSG_NOSIGNAL);