File: chkrootkit-w55808.patch

package info (click to toggle)
chkrootkit 0.58b-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,796 kB
  • sloc: sh: 187,095; ansic: 3,779; makefile: 103
file content (38 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Richard Lewis <richard.lewis.debian@googlemail.com>
Date: Mon, 27 Feb 2023 15:13:32 +0000
Subject: chkrootkit: w55808

Improve output

Forwarded: yes
 (Forwarded by email: 21 Dec 2024)
---
 chkrootkit | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/chkrootkit b/chkrootkit
index 02462d0..d60da5a 100755
--- a/chkrootkit
+++ b/chkrootkit
@@ -57,15 +57,15 @@ w55808 (){
    STATUS=0
 
    for i in ${W55808_FILES}; do
-      if [ -f ${i} ]; then
-         STATUS=1
+      if [ -f "${i}" ]; then
+          STATUS=1
       fi
    done
-   if [ ${STATUS} -eq 1 ] ;then
-      echo "Warning: Possible 55808 Worm installed"
+   if [ "${STATUS}" -eq 1 ] ;then
+      _warn "Possible 55808 Worm installed\n"
    else
-      if [ "${QUIET}" != "t" ]; then echo "not infected"; fi
-         return ${NOT_INFECTED}
+      _not_found
+      return "${NOT_INFECTED}"
    fi
 }