[PATCH] fix to prevent adding a device with invalid UDI to gdl

David Zeuthen david at fubar.dk
Sun Jul 31 19:42:06 PDT 2005


On Sun, 2005-07-31 at 06:29 +0200, Danny Kukawka wrote:
> Hi,
> 
> this is a patch to prevent adding a device with invalid UDI (doesn't start 
> with "/org/freedesktop/Hal/devices/") to the 'global device list'. 
> 
> Without this patch it's possible to add a device with invalid UDI. If so, you 
> can't see the device e.g. via lshal and get always a dbus error [1].
> 
> Please review.

I've committed this with a few changes (uses char buf[] so we can use
sizeof instead of strlen). Thanks.

Cheers,
David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list