Skip to content

Commit

Permalink
Use the new behaviour of getcap by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendonj committed Mar 1, 2024
1 parent f25d1ec commit 7a7f764
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

. tests/test_helper.sh

operator="+"
allcaps=" = "
operator="="
allcaps=" "

# getcap output changed in v2.41, which is currently only used by bullseye
if [ "$CODENAME" = "bullseye" ]; then
operator="="
allcaps=" "
# getcap output changed in v2.41, older versions are only used by buster/focal
if [ "$CODENAME" = "buster" ] || [ "$CODENAME" = "focal" ]; then
operator="+"
allcaps=" = "
fi

# check capabilities of installed binaries are correct
Expand Down

0 comments on commit 7a7f764

Please sign in to comment.