summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-10-21 20:40:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-10-21 20:40:08 -0400
commit0c0cbfbc27491dc5a92d875e1a88d2c9ddae2f0b (patch)
treea4fb071f439769c210f551149905a4133cfa84df /tests
parent9f16f6d73c6793b3510385c381d0d4a8f8a7d7ff (diff)
downloadbfs-0c0cbfbc27491dc5a92d875e1a88d2c9ddae2f0b.tar.xz
tests: Fix privilege dropping when run as root
Fixes: 412102712921e2b051da1d2ae9171d67a2a4bd61
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests.sh2
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