<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>226067</bug_id>
          
          <creation_ts>2008-06-12 13:38 0000</creation_ts>
          <short_desc>chkrootkit-0.47: shell history anomalies warning for linked files uses wrong file list</short_desc>
          <delta_ts>2008-10-06 19:46:21 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>prote@fmi.uni-stuttgart.de</reporter>
          <assigned_to>forensics@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>prote@fmi.uni-stuttgart.de</who>
            <bug_when>2008-06-12 13:38:18 0000</bug_when>
            <thetext>In its &quot;shell history anomalies&quot; part chkrootkit collects two lists of
anomalous history files:
- $files: file size is zero
- $files1: is linked to another file
But when the according warning is written both times $files is used.
For details see the attached diff.

Reproducible: Always

Steps to Reproduce:
None of the files target, .link-history and .empty-history should exist.
1. echo Hallo &gt; target
2. ln target .link-history
3. touch .empty-history
4. chkrootkit

Actual Results:  
...
Searching for anomalies in shell history files... Warning: `//root/.empty-history&apos; file size is zero
Warning: `//root/.empty-history&apos; is linked to another file
...

Expected Results:  
...
Searching for anomalies in shell history files... Warning: `//root/.empty-history&apos; file size is zero
Warning: `//root/.link-history&apos; is linked to another file
...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>prote@fmi.uni-stuttgart.de</who>
            <bug_when>2008-06-12 13:40:09 0000</bug_when>
            <thetext>Created an attachment (id=156497)
diff between the original and corrected chkrootkit script

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-10-06 19:46:21 0000</bug_when>
            <thetext>Fixed in chkrootkit-0.48. Thank you for report and fix.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>156497</attachid>
            <date>2008-06-12 13:40 0000</date>
            <desc>diff between the original and corrected chkrootkit script</desc>
            <filename>chkrootkit.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">KioqIC91c3Ivc2Jpbi9jaGtyb290a2l0Lm9yaWcJVGh1IEp1biAxMiAxNToyMDowMSAyMDA4Ci0t
LSAvdXNyL3NiaW4vY2hrcm9vdGtpdAlUaHUgSnVuIDEyIDE1OjI4OjA5IDIwMDgKKioqKioqKioq
KioqKioqCioqKiAxMDk4LDExMDQgKioqKgogICAgICAgICAgZWNobyAiV2FybmluZzogXGAke2Zp
bGVzfScgZmlsZSBzaXplIGlzIHplcm8iCiAgICAgICAgZmlsZXMxPWAke2ZpbmR9ICR7Uk9PVERJ
Un0ke0hPTUV9ICR7ZmluZGFyZ3N9IC1uYW1lICcuKmhpc3RvcnknIFwoIC1saW5rcyAyIC1vIC10
eXBlIGwgXClgCiAgICAgICAgWyAhIC16ICIke2ZpbGVzMX0iIF0gJiYgXAohICAgICAgICAgZWNo
byAiV2FybmluZzogXGAke2ZpbGVzfScgaXMgbGlua2VkIHRvIGFub3RoZXIgZmlsZSIKICAgICBm
aQogICAgIGlmIFsgLXogIiR7ZmlsZXN9IiAtYSAteiAiJHtmaWxlczF9IiBdOyB0aGVuCiAgICAg
ICAgaWYgWyAiJHtRVUlFVH0iICE9ICJ0IiBdOyB0aGVuIGVjaG8gIm5vdGhpbmcgZm91bmQiOyBm
aQotLS0gMTA5OCwxMTA0IC0tLS0KICAgICAgICAgIGVjaG8gIldhcm5pbmc6IFxgJHtmaWxlc30n
IGZpbGUgc2l6ZSBpcyB6ZXJvIgogICAgICAgIGZpbGVzMT1gJHtmaW5kfSAke1JPT1RESVJ9JHtI
T01FfSAke2ZpbmRhcmdzfSAtbmFtZSAnLipoaXN0b3J5JyBcKCAtbGlua3MgMiAtbyAtdHlwZSBs
IFwpYAogICAgICAgIFsgISAteiAiJHtmaWxlczF9IiBdICYmIFwKISAgICAgICAgIGVjaG8gIldh
cm5pbmc6IFxgJHtmaWxlczF9JyBpcyBsaW5rZWQgdG8gYW5vdGhlciBmaWxlIgogICAgIGZpCiAg
ICAgaWYgWyAteiAiJHtmaWxlc30iIC1hIC16ICIke2ZpbGVzMX0iIF07IHRoZW4KICAgICAgICBp
ZiBbICIke1FVSUVUfSIgIT0gInQiIF07IHRoZW4gZWNobyAibm90aGluZyBmb3VuZCI7IGZpCg==
</data>        

          </attachment>
    </bug>

</bugzilla>