[Pkg-aide-maintainers] Bug#472692: 70_aide_dev fails on devices with # in their names
Ian Redfern
Ian.Redfern at Logica.Com
Tue Mar 25 19:08:10 UTC 2008
Package: aide
Version: 0.13.1-2
On one of my etch systems I have a device name with a # in it:
$ ls /dev/input/by-id
usb-Lite-On_Technology_USB_Productivity_Option_Keyboard__has_the_hub_in_#_1__-event-kbd
This causes 70_aide_dev to produce an invalid line
in /var/lib/aide/aide.conf.autogenerated:
/dev/input/by-id/usb-Lite-On_Technology_USB_Productivity_Option_Keyboard__has_the_hub_in_#_1__-event-kbd$ RamdiskData
With the following small change to escape any # it works fine:
find /dev -path /dev/.static -prune -o -print | \
sed 's/^\(.*\)/\1$ RamdiskData/' | sed 's/#/\\#/g'
Thanks,
Ian Redfern.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
More information about the Pkg-aide-maintainers
mailing list