ensure operator precedence using more parenthesis

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-09-02 23:38:53 +02:00
parent 0ff2bef84c
commit e1f0b0fa40
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -4708,7 +4708,7 @@ sub main() {
0 == syscall &SYS_capget, $hdrp, $datap
or error "capget failed: $!";
my ($effective, undef) = unpack "LLLLLL", $datap;
if (($effective >> $CAP_SYS_ADMIN) & 1 != 1) {
if ((($effective >> $CAP_SYS_ADMIN) & 1) != 1) {
warning
"cannot mount because CAP_SYS_ADMIN is not in the effective set";
$options->{canmount} = 0;