From: Richard Lewis <richard.lewis.debian@googlemail.com>
Date: Thu, 17 Oct 2024 22:23:31 +0100
Subject: chkrootkit: chk_identd

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

diff --git a/chkrootkit b/chkrootkit
index b4b83b8..b2a0c5e 100755
--- a/chkrootkit
+++ b/chkrootkit
@@ -2177,20 +2177,20 @@ chk_timed () {
 
 chk_identd () {
     STATUS=${NOT_INFECTED}
-    CMD=`loc in.identd in.identd $pth`
+    CMD=$(loc in.identd in.identd "$pth")
     if [ ${?} -ne 0 ]; then
-       return ${NOT_FOUND}
+       return "${NOT_FOUND}"
     fi
     if [ "${EXPERT}" = "t" ]; then
         expertmode_output "${strings} -a ${CMD}"
         return 5
     fi
 
-    if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+    if "${strings}" -a "${CMD}" | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
     then
         STATUS=${INFECTED}
     fi
-    return ${STATUS}
+    return "${STATUS}"
 }
 
 chk_init () {
