File: chkrootkit-chk_ifconfig.patch

package info (click to toggle)
chkrootkit 0.58b-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,796 kB
  • sloc: sh: 187,095; ansic: 3,779; makefile: 103
file content (47 lines) | stat: -rw-r--r-- 1,303 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
From: Richard Lewis <richard.lewis.debian@googlemail.com>
Date: Thu, 17 Oct 2024 22:31:16 +0100
Subject: chkrootkit: chk_ifconfig

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

diff --git a/chkrootkit b/chkrootkit
index 344aec0..36de5f6 100755
--- a/chkrootkit
+++ b/chkrootkit
@@ -2567,9 +2567,9 @@ chk_cron () {
 
 chk_ifconfig () {
     STATUS=${INFECTED}
-    CMD=`loc ifconfig ifconfig $pth`
+    CMD=$(loc ifconfig ifconfig "$pth")
     if [ "${?}" -ne 0 ]; then
-        return ${NOT_FOUND}
+        return "${NOT_FOUND}"
     fi
 
     if [ "${EXPERT}" = "t" ]; then
@@ -2579,17 +2579,17 @@ chk_ifconfig () {
 
     IFCONFIG_NOT_INFECTED_LABEL="PROMISC"
     IFCONFIG_INFECTED_LABEL="/dev/tux|/session.null"
-    if ${strings} -a ${CMD} | ${egrep} "${IFCONFIG_NOT_INFECTED_LABEL}" \
+    if "${strings}" -a "${CMD}" | ${egrep} "${IFCONFIG_NOT_INFECTED_LABEL}" \
     >/dev/null 2>&1
     then
        STATUS=${NOT_INFECTED}
     fi
-    if ${strings} -a ${CMD} | ${egrep} "${IFCONFIG_INFECTED_LABEL}" \
+    if "${strings}" -a "${CMD}" | ${egrep} "${IFCONFIG_INFECTED_LABEL}" \
     >/dev/null 2>&1
     then
        STATUS=${INFECTED}
     fi
-    return ${STATUS}
+    return "${STATUS}"
 }
 
 chk_rshd () {