diff options
author | xdavidwu <xdavidwuph@gmail.com> | 2021-11-05 15:37:06 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-11-05 23:47:16 +0100 |
commit | 0cfb0971f0fcd345cae76f6837d9801b6cbde407 (patch) | |
tree | 24794ac7eef732085777b70ce1d259f2cc30c93b /src | |
parent | test: exercise sytemd-integritysetup & generator (diff) | |
download | systemd-0cfb0971f0fcd345cae76f6837d9801b6cbde407.tar.xz systemd-0cfb0971f0fcd345cae76f6837d9801b6cbde407.zip |
coredump: fix filename in journal when not compressed
Since 587f2a5e564cf434c2e0a653f52b8f73e86092d8, filename for
not-compressed coredump is missing from save_external_coredump, making
it write COREDUMP_FILENAME= (empty) in journal, making `coredumpctl`
report it missing but it is actually saved.
This fixes it.
Diffstat (limited to 'src')
-rw-r--r-- | src/coredump/coredump.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index d7eab3d36c..a88f495571 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -525,6 +525,7 @@ static int save_external_coredump( if (lseek(fd, 0, SEEK_SET) == (off_t) -1) return log_error_errno(errno, "Failed to seek on coredump %s: %m", fn); + *ret_filename = TAKE_PTR(fn); *ret_data_fd = TAKE_FD(fd); *ret_size = (uint64_t) st.st_size; *ret_truncated = truncated; |