[Aide] Aide fails to match some filenames

Bob Proulx bob at proulx.com
Sun Mar 13 22:15:46 EET 2005


I just posted this as bug 1162575 to aide.sf.net.

On first look it appears that some filenames are lost and aide will
not scan them for changes.  Here is how you can create one test case
for aide-0.10.  I used Debian's sid aide-0.10-4.

  mkdir -p /var/tmp/www/www.proulx.com/public_html
  echo foo > /var/tmp/www/www.proulx.com/public_html/foo

  cat >/var/tmp/www/conf <<EOF
  database = file:/var/tmp/www/db
  database_out = file:/var/tmp/www/db.new
  /var/tmp/www/www.proulx.com/public_html R
  EOF

  cd /var/tmp/www
  find
  .
  ./db
  ./conf
  ./www.proulx.com
  ./www.proulx.com/public_html
  ./www.proulx.com/public_html/foo

  aide --config=/var/tmp/www/conf --init --verbose=255
  ...
  /var/tmp/www/www.proulx.com match=0, tree=6266912, attr=0

Interestingly if I change the dots to underscores things work.

  ln -s www.proulx.com www_proulx_com
  perl -pe 's/www.proulx.com/www_proulx_com/' conf > conf_
  aide --config=/var/tmp/www/conf_ --init --verbose=255
  ...
  New start_path=/var/tmp/www/www_proulx_com
  Matches rule from line #4:
  /var/tmp/www/www_proulx_com/public_html

The current CVS source for today exhibits the same behavior.

Any clues?  I started looking through traverse_tree() and
check_node_for_match() et al but got lost in the logic.

Bob


More information about the Aide mailing list