udev-ish replacement for hal-cups-utils?

Tim Waugh twaugh at redhat.com
Thu Jul 23 06:29:19 PDT 2009


On Thu, 2009-07-23 at 10:49 +0200, Till Kamppeter wrote:
> You are missing the NULL check here (musb.c, line 2083):
> 
>     ieee1284_id = udev_device_get_sysattr_value (ddev, "ieee1284_id");
>     strncpy (device_id, ieee1284_id, len);
>     device_id[len - 1] = '\0';

Thank you, fixed.

> An additional strange thing here is that we reach this point as without 
> usblp the libusb method should always obtain the device ID. So perhaps 
> the code has another bug and I got my device IDs always by the kernel 
> module/udev method?

Perhaps the permissions are not correct on /dev/bus/usb/xxx/yyy?

Tim.
*/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/devkit-devel/attachments/20090723/ecddb632/attachment.pgp 


More information about the devkit-devel mailing list