Precedence issue in /usr/sbin/fwcheck_psad line 193

Bug #1645061 reported by James Fraser
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
psad (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

NAME="Ubuntu"
VERSION="16.10 (Yakkety Yak)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.10"
VERSION_ID="16.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="http://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=yakkety
UBUNTU_CODENAME=yakkety

--

psad:
  Installed: 2.2.3-1.1
  Candidate: 2.2.3-1.1
  Version table:
 *** 2.2.3-1.1 500
        500 http://au.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
        100 /var/lib/dpkg/status

--

When you run "psad -R", you get warning:

Possible precedence issue with control flow operator at /usr/sbin/fwcheck_psad line 193.

--

This can be fixed by setting parenthesis around return on 193:

    return ($forward_chain_rv and $input_chain_rv);

Revision history for this message
Max Cady (max-cady) wrote :

Thank you! This was very helpful!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in psad (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.