From 0c0cbfbc27491dc5a92d875e1a88d2c9ddae2f0b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 21 Oct 2022 20:40:08 -0400 Subject: tests: Fix privilege dropping when run as root Fixes: 412102712921e2b051da1d2ae9171d67a2a4bd61 --- tests/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.sh b/tests/tests.sh index 3a2446b..03ce3eb 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -55,7 +55,7 @@ UNAME=$(uname) if command -v capsh &>/dev/null; then if capsh --has-p=cap_dac_override &>/dev/null || capsh --has-p=cap_dac_read_search &>/dev/null; then - if [ -n "$BFS_TRIED_DROP" ]; then + if [ -n "${BFS_TRIED_DROP:-}" ]; then cat >&2 <