]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit-names.patch
- cosmetics
[packages/chkrootkit.git] / chkrootkit-names.patch
1 diff -Nur chkrootkit-0.44.orig/chkrootkit chkrootkit-0.44/chkrootkit
2 --- chkrootkit-0.44.orig/chkrootkit     2004-09-01 13:27:28.000000000 +0000
3 +++ chkrootkit-0.44/chkrootkit  2004-09-01 16:50:34.000000000 +0000
4 @@ -149,20 +149,20 @@
5      fi
6  
7      if [ "${EXPERT}" = "t" ]; then
8 -        expertmode_output "./ifpromisc" -v
9 +        expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v
10          return 5
11      fi
12 -    if [ ! -x ./ifpromisc ]; then
13 -      echo "not tested: can't exec ./ifpromisc"
14 +    if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
15 +      echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
16        return ${NOT_TESTED}
17      else
18 -      [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
19 +      [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q
20      fi
21  }
22  
23  z2 () {
24 -    if [ ! -x ./chklastlog ]; then
25 -      echo "not tested: can't exec ./chklastlog"
26 +    if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
27 +      echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
28        return ${NOT_TESTED}
29      fi
30  
31 @@ -176,32 +176,32 @@
32      fi
33  
34      if [ "${EXPERT}" = "t" ]; then
35 -        expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
36 +        expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
37          return 5
38      fi
39  
40 -    if ./chklastlog -f ${WTMP} -l ${LASTLOG}
41 +    if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
42      then
43        if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
44      fi
45  }
46  
47  wted () {
48 -    if [ ! -x ./chkwtmp ]; then
49 -      echo "not tested: can't exec ./chkwtmp"
50 +    if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
51 +      echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
52        return ${NOT_TESTED}
53      fi
54  
55     if [ "$SYSTEM" = "SunOS" ]; then
56 -       if [ ! -x ./check_wtmpx ]; then
57 -          echo "not tested: can't exec ./check_wtmpx"
58 +       if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
59 +          echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
60         else
61            if [ "${EXPERT}" = "t" ]; then
62 -             expertmode_output "./check_wtmpx"
63 +             expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
64                return 5
65            fi
66           if [ -f ${ROOTDIR}var/adm/wtmp ]; then
67 -             if ./check_wtmpx
68 +             if /usr/bin/chkrootkit-check_wtmpx
69                  then
70                  if [ "${QUIET}" != "t" ]; then \
71                     echo "nothing deleted in /var/adm/wtmpx"; fi
72 @@ -212,12 +212,12 @@
73         WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
74  
75         if [ "${EXPERT}" = "t" ]; then
76 -          expertmode_output "./chkwtmp -f ${WTMP}"
77 +          expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
78            return 5
79         fi
80      fi
81  
82 -    if ./chkwtmp -f ${WTMP}
83 +    if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
84      then
85        if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
86      fi
87 @@ -256,8 +256,8 @@
88      prog=""
89      if [  \( "${SYSTEM}" = "Linux"  -o \( "${SYSTEM}" = "FreeBSD" -a \
90         `echo ${V} | ${awk} '{ if ($1 > 4.3) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then
91 -      [ ! -x ./chkproc ] && prog="./chkproc"
92 -      [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
93 +      [ ! -x /usr/bin/chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
94 +      [ ! -x /usr/bin/chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
95        if [ "$prog" != "" ]; then
96  #        echo "not tested: can't exec $prog"
97          return ${NOT_TESTED}
98 @@ -269,7 +269,7 @@
99           PV=`$ps -V 2>/dev/null| $cut -d " " -f 3 |$awk -F . '{ print $1 "." $2 $3 }' | ${awk} '{ if ($0 > 3.19) print 2; else print 1 }'`
100           [ "$PV" = "" ] &&  PV=1
101           [ "${SYSTEM}" = "SunOS" ] && PV=0
102 -         expertmode_output "./chkproc -v -v -p $PV"
103 +         expertmode_output "/usr/bin/chkrootkit-chkproc -v -v -p $PV"
104           return 5
105        fi
106  
107 @@ -295,7 +295,7 @@
108        if [ "${DEBUG}" = "t" ]; then
109             ${echo} "*** $PV ***"
110        fi
111 -      if ./chkproc -p ${PV}
112 +      if /usr/bin/chkrootkit-chkproc -p ${PV}
113        then
114             if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
115        else
116 @@ -1534,18 +1534,18 @@
117  
118     if [ "${SYSTEM}" = "Linux" ]
119     then
120 -      if [ ! -x ./strings-static ]; then
121 -        printn "can't exec ./strings-static, "
122 +      if [ ! -x /usr/bin/chkrootkit-strings-static ]; then
123 +        printn "can't exec /usr/bin/chkrootkit-strings-static, "
124          return ${NOT_TESTED}
125        fi
126  
127        if [ "${EXPERT}" = "t" ]; then
128 -          expertmode_output "./strings-static -a ${CMD}"
129 +          expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}"
130            return 5
131        fi
132  
133        ### strings must be a statically linked binary.
134 -      if ./strings-static -a ${CMD} > /dev/null 2>&1
135 +      if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1
136        then
137           STATUS=${INFECTED}
138        fi
This page took 0.120419 seconds and 3 git commands to generate.