1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-03 16:58:37 +03:00

Revert "coredumpctl: Don't treat no coredumps as failure"

This reverts commit dfe79b9ed21b0feeb5a120e8b994f46cff7cf5b0.
This commit is contained in:
Yu Watanabe 2024-12-11 10:54:20 +09:00
parent 94930ff674
commit 77064620d7
2 changed files with 6 additions and 4 deletions

View File

@ -389,7 +389,10 @@
<refsect1>
<title>Exit status</title>
<para>On success, 0 is returned; otherwise, a non-zero failure code is returned.</para>
<para>On success, 0 is returned; otherwise, a non-zero failure
code is returned. Not finding any matching core dumps is treated as
failure.
</para>
</refsect1>
<refsect1>

View File

@ -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;
}
}