Skip to content

Commit

Permalink
fixup! savecore: add missing call to cap_openlog when in capabilities…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
stephane-rochoy-stormshield committed Dec 12, 2024
1 parent a920778 commit 81e3954
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sbin/savecore/tests/log_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ log_perror_body()
atf_check -s exit:1 -o ignore -e save:savecore.err savecore -vC /dev/missing
grep -qE 'savecore [0-9]+ - - /dev/missing: No such file or directory' savecore.err
[ $? -eq 0 ] && atf_pass || atf_fail "missing/invalid error output"
}

Check warning on line 17 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

Check warning on line 17 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

Check warning on line 17 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
log_perror_cleanup()
{

Check warning on line 19 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
rm savecore.err

Check warning on line 20 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

Check warning on line 20 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
}

Check warning on line 22 in sbin/savecore/tests/log_test.sh

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit 81e3954

Please sign in to comment.