diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2007-11-27 21:43:59 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2007-11-27 21:43:59 +0000 |
commit | c83e82641d1853a3764df97fda75721b81447b37 (patch) | |
tree | caef03fffea9ded3a8d7934a9df61b5f2b9cab7c /libgphoto2_port/usb | |
parent | 613d9f8b73963c73ceee129ec9ec8ef183fcbb22 (diff) | |
download | libgphoto2-c83e82641d1853a3764df97fda75721b81447b37.tar.gz |
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
Diffstat (limited to 'libgphoto2_port/usb')
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |