[PATCH] fix to prevent adding a device with invalid UDI to gdl
Danny Kukawka
danny.kukawka at web.de
Sat Jul 30 21:29:49 PDT 2005
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.
Cheers,
Danny
device_store.c | 7 +++++++
1 files changed, 7 insertions(+)
[1] lshal version 0.5.3
32218: arguments to dbus_message_new_method_call() were incorrect, assertion
"_dbus_check_is_valid_path (path)" failed in file dbus-message.c line 796.
This is normally a bug in some application using the D-BUS library.
libhal.c 360 : Couldn't allocate D-BUS message
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix_prevent_wrong_UDI.diff
Type: text/x-diff
Size: 797 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050731/6e023a5e/hal-fix_prevent_wrong_UDI.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list