From c83e82641d1853a3764df97fda75721b81447b37 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 27 Nov 2007 21:43:59 +0000 Subject: do not detach usb storage devices. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10881 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/usb/libusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgphoto2_port/usb') diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index d39ed19d9..9a173b877 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -245,7 +245,7 @@ gp_port_usb_open (GPPort *port) ret = usb_get_driver_np (port->pl->dh, port->settings.usb.interface, name, sizeof(name) ); - if (strstr(name,"usbfs")) { + if (strstr(name,"usbfs") || strstr(name,"storage")) { /* other gphoto instance most likely */ gp_port_set_error (port, _("Camera is already in use.")); return GP_ERROR_IO_LOCK; -- cgit v1.2.1