Re: [Libusbx-devel] [PATCH] Initialize auto_detach_kernel_driver to 0 for new handle

2013-06-25 Thread Chris Dickens
Sorry, here's the patch with correct whitespace. Regards, Chris 0001-core.c-Initialize-auto_detach_kernel_driver-to-0-for.patch Description: Binary data -- This SF.net email is sponsored by Windows: Build for Windows St

[Libusbx-devel] [PATCH] Initialize auto_detach_kernel_driver to 0 for new handle

2013-06-25 Thread Chris Dickens
Hi, I have discovered that the auto_detach_kernel_driver functionality was being randomly used by devices that I had not explicitly set to use it. The root cause is that the value was never initialized after allocating the new handle. This patch fixes this issue. Chris 0001-core.c-Initialize-au

[Libusbx-devel] umask affects libusb_attach_kernel_driver()

2013-06-25 Thread Chris Dickens
Hi, I have discovered that the libusb process's file mask affects how libusb_attach_kernel_driver() restores the driver. In my particular case, I am dealing with usblp, so the kernel enumerates /dev/usb/lpX device files. The /dev/usb folder is created and destroyed as necessary for the devices. W