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

This reverts commit dfe79b9ed2.
This commit is contained in:
Yu Watanabe
2024-12-11 11:14:37 +09:00
parent 94930ff674
commit 77064620d7
2 changed files with 6 additions and 4 deletions
+4 -1
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>
+2 -3
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;
}
}