Package: aide
Version: 0.13.1-10
Severity: normal
Tags: patch

Hi,
after every reboot aide reports >400 changed files. These have the form:

changed: /dev/.udev/names/vcsa6/\x2fclass\x2fvc\x2fvcsa6

since recent udev stores the path to the devices sysfs representation
there. Attached patch fixes this by escaping the backslashes in the
find expression of 70_aide_dev properly. Additionally it escapes dots to
not cause false matches.

The bug probably deserves higher severity since it makes aide mostly
unusable in lenny on systems using udev.
Cheers,
 -- Guido

Index: debian/aide.conf.d/70_aide_dev
===================================================================
--- debian/aide.conf.d/70_aide_dev	(revision 762)
+++ debian/aide.conf.d/70_aide_dev	(working copy)
@@ -16,9 +16,10 @@
 
   # -path is -wholename on sid, but -path still works on sarge and sid
   find /dev -path /dev/.static -prune -o -print | \
-     sed -e 's/^\(.*\)/\1$ RamdiskData/' \
+     sed -e 's/^\(.*\)/\1$ RamdiskData/'   \
+         -e 's,\\,\\\\,g' -e 's,\.,\\\.,g' \
          -e 's,#,\\#,g'
-  echo "/dev/.static$ RamdiskData"
+  echo "/dev/\.static$ RamdiskData"
 else
   # we have static /dev
   cat <<EOF

Reply via email to