summaryrefslogtreecommitdiff
path: root/src/journal/coredumpctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-23 16:28:05 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-23 16:28:05 +0200
commit93240d3aba4611dd966c5b9f7368d20612211486 (patch)
treeb00bfed80c8ac4523424f1bdef1607f3c0513d4a /src/journal/coredumpctl.c
parent81cef14fce9c64afed600614403ecae7cd79781d (diff)
coredump: never write more than the configured processing size limit to disk
Diffstat (limited to 'src/journal/coredumpctl.c')
-rw-r--r--src/journal/coredumpctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index fefd02bc9b..48e63415b1 100644
--- a/src/journal/coredumpctl.c
+++ b/src/journal/coredumpctl.c
@@ -659,7 +659,7 @@ static int dump_core(sd_journal* j) {
return -errno;
}
- r = copy_bytes(fd, output ? fileno(output) : STDOUT_FILENO);
+ r = copy_bytes(fd, output ? fileno(output) : STDOUT_FILENO, (off_t) -1);
if (r < 0) {
log_error("Failed to stream coredump: %s", strerror(-r));
return r;