chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: fix memfd-cache regarding memfd offsets
[elogind.git]
/
src
/
journal-remote
/
journal-gatewayd.c
diff --git
a/src/journal-remote/journal-gatewayd.c
b/src/journal-remote/journal-gatewayd.c
index d39a2cc67e61d53d8b643957547c8b90f0149f49..7a99430a63c951e9b1556cb92bf3b60e7ba0f190 100644
(file)
--- a/
src/journal-remote/journal-gatewayd.c
+++ b/
src/journal-remote/journal-gatewayd.c
@@
-198,7
+198,7
@@
static ssize_t request_reader_entries(
else {
m->tmp = tmpfile();
if (!m->tmp) {
else {
m->tmp = tmpfile();
if (!m->tmp) {
- log_error
(
"Failed to create temporary file: %m");
+ log_error
_errno(errno,
"Failed to create temporary file: %m");
return MHD_CONTENT_READER_END_WITH_ERROR;
}
}
return MHD_CONTENT_READER_END_WITH_ERROR;
}
}
@@
-211,7
+211,7
@@
static ssize_t request_reader_entries(
sz = ftello(m->tmp);
if (sz == (off_t) -1) {
sz = ftello(m->tmp);
if (sz == (off_t) -1) {
- log_error
(
"Failed to retrieve file position: %m");
+ log_error
_errno(errno,
"Failed to retrieve file position: %m");
return MHD_CONTENT_READER_END_WITH_ERROR;
}
return MHD_CONTENT_READER_END_WITH_ERROR;
}
@@
-219,7
+219,7
@@
static ssize_t request_reader_entries(
}
if (fseeko(m->tmp, pos, SEEK_SET) < 0) {
}
if (fseeko(m->tmp, pos, SEEK_SET) < 0) {
- log_error
(
"Failed to seek to position: %m");
+ log_error
_errno(errno,
"Failed to seek to position: %m");
return MHD_CONTENT_READER_END_WITH_ERROR;
}
return MHD_CONTENT_READER_END_WITH_ERROR;
}
@@
-559,7
+559,7
@@
static ssize_t request_reader_fields(
else {
m->tmp = tmpfile();
if (!m->tmp) {
else {
m->tmp = tmpfile();
if (!m->tmp) {
- log_error
(
"Failed to create temporary file: %m");
+ log_error
_errno(errno,
"Failed to create temporary file: %m");
return MHD_CONTENT_READER_END_WITH_ERROR;
}
}
return MHD_CONTENT_READER_END_WITH_ERROR;
}
}
@@
-572,7
+572,7
@@
static ssize_t request_reader_fields(
sz = ftello(m->tmp);
if (sz == (off_t) -1) {
sz = ftello(m->tmp);
if (sz == (off_t) -1) {
- log_error
(
"Failed to retrieve file position: %m");
+ log_error
_errno(errno,
"Failed to retrieve file position: %m");
return MHD_CONTENT_READER_END_WITH_ERROR;
}
return MHD_CONTENT_READER_END_WITH_ERROR;
}
@@
-580,7
+580,7
@@
static ssize_t request_reader_fields(
}
if (fseeko(m->tmp, pos, SEEK_SET) < 0) {
}
if (fseeko(m->tmp, pos, SEEK_SET) < 0) {
- log_error
(
"Failed to seek to position: %m");
+ log_error
_errno(errno,
"Failed to seek to position: %m");
return MHD_CONTENT_READER_END_WITH_ERROR;
}
return MHD_CONTENT_READER_END_WITH_ERROR;
}