diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-10-21 20:40:08 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-10-21 20:40:08 -0400 |
commit | 0c0cbfbc27491dc5a92d875e1a88d2c9ddae2f0b (patch) | |
tree | a4fb071f439769c210f551149905a4133cfa84df | |
parent | 9f16f6d73c6793b3510385c381d0d4a8f8a7d7ff (diff) | |
download | bfs-0c0cbfbc27491dc5a92d875e1a88d2c9ddae2f0b.tar.xz |
tests: Fix privilege dropping when run as root
Fixes: 412102712921e2b051da1d2ae9171d67a2a4bd61
-rwxr-xr-x | tests/tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 <<EOF ${RED}error:${RST} Failed to drop capabilities. EOF |