Skip to content

Commit

Permalink
Fix for log spam when savecore has nothing to do
Browse files Browse the repository at this point in the history
  • Loading branch information
lif committed Jul 16, 2023
1 parent c8d33d9 commit 54bdb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion illumos-utils/src/dumpadm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fn savecore() -> Result<Option<OsString>, DumpAdmError> {
cmd.env_clear();
cmd.arg("-v");
let out = cmd.output().map_err(DumpAdmError::ExecSavecore)?;
if out.status.success() {
if out.status.success() && !out.stdout.is_empty() {
Ok(Some(OsString::from_vec(out.stdout)))
} else {
Err(DumpAdmError::SavecoreFailure(OsString::from_vec(out.stderr)))
Expand Down

0 comments on commit 54bdb28

Please sign in to comment.