]> git.pld-linux.org Git - packages/chkrootkit.git/commitdiff
- names bug
authortiwek <tiwek@pld-linux.org>
Sat, 8 Feb 2003 16:03:28 +0000 (16:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chkrootkit-names.patch -> 1.6

chkrootkit-names.patch

index e2448a106a13aa605c10a2033719a72c52557a14..7b2bddb13562026b9587d4c5b1077715e9d44465 100644 (file)
@@ -8,25 +8,25 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
 -    if [ ! -x ./ifpromisc ]; then
 -      echo "not tested: can't exec ./ifpromisc"
 +    if [ ! -x /usr/bin/ifpromisc ]; then
-+      echo "not tested: can't exec /usr/bin/ifpromisc"
++      echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
        return ${NOT_TESTED}
      fi
  
      if [ "${EXPERT}" = "t" ]; then
 -        expertmode_output "./ifpromisc"
-+        expertmode_output "/usr/bin/ifpromisc"
++        expertmode_output "/usr/bin/chkrootkit-ifpromisc"
          return 5
      fi
      echo
 -    ./ifpromisc
-+    /usr/bin/ifpromisc
++    /usr/bin/chkrootkit-ifpromisc
  }
  
  z2 () {
 -    if [ ! -x ./chklastlog ]; then
 -      echo "not tested: can't exec ./chklastlog"
-+    if [ ! -x /usr/bin/chklastlog ]; then
-+      echo "not tested: can't exec /usr/bin/chklastlog"
++    if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
++      echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
        return ${NOT_TESTED}
      fi
  
@@ -35,12 +35,12 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
  
      if [ "${EXPERT}" = "t" ]; then
 -        expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
-+        expertmode_output "/usr/bin/chklastlog -f ${WTMP} -l ${LASTLOG}"
++        expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
          return 5
      fi
  
 -    if ./chklastlog -f ${WTMP} -l ${LASTLOG}
-+    if /usr/bin/chklastlog -f ${WTMP} -l ${LASTLOG}
++    if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
      then
        if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
      fi
@@ -49,24 +49,24 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
  wted () {
 -    if [ ! -x ./chkwtmp ]; then
 -      echo "not tested: can't exec ./chkwtmp"
-+    if [ ! -x /usr/bin/chkwtmp ]; then
-+      echo "not tested: can't exec /usr/bin/chkwtmp"
++    if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
++      echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
        return ${NOT_TESTED}
      fi
  
     if [ "$SYSTEM" = "SunOS" ]; then
 -       if [ ! -x ./check_wtmpx ]; then
 -          echo "not tested: can't exec ./check_wtmpx"
-+       if [ ! -x /usr/bin/check_wtmpx ]; then
-+          echo "not tested: can't exec /usr/bin/check_wtmpx"
++       if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
++          echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
         else
            if [ "${EXPERT}" = "t" ]; then
 -             expertmode_output "./check_wtmpx"
-+             expertmode_output "/usr/bin/check_wtmpx"
++             expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
                return 5
            fi
 -          if ./check_wtmpx
-+          if /usr/bin/check_wtmpx
++          if /usr/bin/chkrootkit-check_wtmpx
               then
               if [ "${QUIET}" != "t" ]; then \
                  echo "nothing deleted in /var/adm/wtmpx"; fi
@@ -75,13 +75,13 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
  
         if [ "${EXPERT}" = "t" ]; then
 -          expertmode_output "./chkwtmp -f ${WTMP}"
-+          expertmode_output "/usr/bin/chkwtmp -f ${WTMP}"
++          expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
            return 5
         fi
      fi
  
 -    if ./chkwtmp -f ${WTMP}
-+    if /usr/bin/chkwtmp -f ${WTMP}
++    if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
      then
        if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
      fi
@@ -91,8 +91,8 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
         ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then
 -      [ ! -x ./chkproc ] && prog="./chkproc"
 -      [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
-+      [ ! -x /usr/bin/chkproc ] && prog="/usr/bin/chkproc"
-+      [ ! -x /usr/bin/chkdirs ] && prog="$prog /usr/bin/chkdirs"
++      [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
++      [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
        if [ "$prog" != "" ]; then
  #        echo "not tested: can't exec $prog"
          return ${NOT_TESTED}
@@ -101,7 +101,7 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
           [ -r /proc/ksyms ] &&  ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
           [ -d /proc/knark ] &&  ${ls} -la /proc/knark 2> /dev/null
 -          expertmode_output "./chkproc -v -v"
-+          expertmode_output "/usr/bin/chkproc -v -v"
++          expertmode_output "/usr/bin/chkrootkit-chkproc -v -v"
            return 5
        fi
  
@@ -110,7 +110,7 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
        fi
  
 -      if ./chkproc
-+      if /usr/bin/chkproc
++      if /usr/bin/chkrootkit-chkproc
        then
             if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
        else
@@ -120,20 +120,20 @@ diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
     then
 -      if [ ! -x ./strings ]; then
 -        printn "can't exec ./strings-static, "
-+      if [ ! -x /usr/bin/strings ]; then
-+        printn "can't exec /usr/bin/strings-static, "
++      if [ ! -x /usr/bin/chkrootkit-strings ]; then
++        printn "can't exec /usr/bin/chkrootkit-strings-static, "
          return ${NOT_TESTED}
        fi
  
        if [ "${EXPERT}" = "t" ]; then
 -          expertmode_output "./strings -a ${CMD}"
-+          expertmode_output "/usr/bin/strings -a ${CMD}"
++          expertmode_output "/usr/bin/chkrootkit-strings -a ${CMD}"
            return 5
        fi
  
        ### strings must be a statically linked binary.
 -      if ./strings-static -a ${CMD} > /dev/null 2>&1
-+      if /usr/bin/strings-static -a ${CMD} > /dev/null 2>&1
++      if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1
        then
           STATUS=${INFECTED}
        fi
This page took 0.063716 seconds and 4 git commands to generate.