From abf56b55026f950d42c1b22e273fb1c5af5f3eca Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Mon, 29 Jul 2024 09:55:11 +1000 Subject: [PATCH] Fix in audit_linux when testing for executable files not known by the package manager. --- other/audit_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/audit_linux.sh b/other/audit_linux.sh index 802d7e1c5..af6a17ee2 100755 --- a/other/audit_linux.sh +++ b/other/audit_linux.sh @@ -3662,7 +3662,7 @@ if [ "$busybox" = "n" ]; then package=$(dpkg -S "$file" 2>/dev/null | cut -d: -f1) ;; 'CentOS' | 'RedHat' | 'Fedora' | 'Suse' | 'Amazon' | 'Mariner' | 'AlmaLinux' ) - package=$(rpm -qf "$file" 2>/dev/null | grep "is not owned by any package") + package=$(rpm -qf "$file" 2>/dev/null | grep -v "is not owned by any package") ;; esac fi