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:
parent
94930ff674
commit
77064620d7
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user