summaryrefslogtreecommitdiff
path: root/src/coredump/coredump.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-03-01 15:46:54 +0100
committerLennart Poettering <lennart@poettering.net>2017-03-01 18:13:00 +0100
commit32a1575fbd8807bad2570af0d631a0263f0eb765 (patch)
tree38839405fc776bfead30e7a7318f7b33f050a763 /src/coredump/coredump.c
parent059c35f507b3efecf1b7d77e62427766f7a25b1a (diff)
coredump: normalize generation/parsing of COREDUMP_TRUNCATED=
Given that this is a field primarily processed by computers, and not so much by humans, assign "1" instead of "yes". Also, use parse_boolean() as we usually do for parsing it again. This makes things more alike udev options (as one example), such as SYSTEMD_READY where we also spit out "1" and "0", and parse with parse_boolean().
Diffstat (limited to 'src/coredump/coredump.c')
-rw-r--r--src/coredump/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 270af630cf..190ffc631e 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -795,7 +795,7 @@ log:
IOVEC_SET_STRING(iovec[n_iovec++], core_message);
if (truncated)
- IOVEC_SET_STRING(iovec[n_iovec++], "COREDUMP_TRUNCATED=yes");
+ IOVEC_SET_STRING(iovec[n_iovec++], "COREDUMP_TRUNCATED=1");
/* Optionally store the entire coredump in the journal */
if (arg_storage == COREDUMP_STORAGE_JOURNAL) {