diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-12-11 02:54:20 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-12-11 03:14:37 +0100 |
commit | 77064620d70ecdd3d4f574fc57fec5debd5b6841 (patch) | |
tree | 8cb78944e7aba8bed9d65df5da17679efff88430 /src/coredump | |
parent | bus-creds/time-util: use first_word() and skip_leading_chars() more (#35421) (diff) | |
download | systemd-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.c | 5 |
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; } } |