summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-12-11 02:54:20 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-12-11 03:14:37 +0100
commit77064620d70ecdd3d4f574fc57fec5debd5b6841 (patch)
tree8cb78944e7aba8bed9d65df5da17679efff88430 /src/coredump
parentbus-creds/time-util: use first_word() and skip_leading_chars() more (#35421) (diff)
downloadsystemd-77064620d70ecdd3d4f574fc57fec5debd5b6841.tar.xz
systemd-77064620d70ecdd3d4f574fc57fec5debd5b6841.zip
Revert "coredumpctl: Don't treat no coredumps as failure"
This reverts commit dfe79b9ed21b0feeb5a120e8b994f46cff7cf5b0.
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredumpctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index 4a25a2fb70..e7d0dd34c0 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -963,10 +963,9 @@ static int dump_list(int argc, char **argv, void *userdata) {
}
if (!arg_field && n_found <= 0) {
- if (!arg_quiet && !sd_json_format_enabled(arg_json_format_flags))
+ if (!arg_quiet)
log_notice("No coredumps found.");
-
- return 0;
+ return -ESRCH;
}
}