summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-06 21:20:32 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-07 01:19:56 +0100
commit84ee0960443b795936026239f8c0ff8429aed699 (patch)
tree100785517a3bdfe3b9950ac25f19a9abbed72d09 /src/journal
parentcda134ab1eac84f874aacf8e885a07112a7fd5ce (diff)
copy: change error code when hitting copy limit to EFBIG
After all, this is about files, not arguments, hence EFBIG is more appropriate than E2BIG
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index f423fa2a29..26a2010772 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -329,7 +329,7 @@ static int save_external_coredump(
}
r = copy_bytes(STDIN_FILENO, fd, arg_process_size_max);
- if (r == -E2BIG) {
+ if (r == -EFBIG) {
log_error("Coredump of %s (%s) is larger than configured processing limit, refusing.", info[INFO_PID], info[INFO_COMM]);
goto fail;
} else if (IN_SET(r, -EDQUOT, -ENOSPC)) {