Source: libgphoto2-6
Severity: normal
Tags: patch

Hi,

When updating libgphoto2-6 to 2.5.4, I'm running into a new bug, which is known 
upstream.

I get:

# /usr/local/bin/gphoto2 --list-files
There is no file in folder '/'.                                                
There is no file in folder '/store_00010001'.

Upstream states 'One of my 2.5.4 fixes for a different camera was too eager and 
broke this due to slight incorrect protocol interpretation by the nokia.'

Patch is attached and reportedly fixed this bug.

Source: http://sourceforge.net/p/gphoto/bugs/975/#dcb3

Thank you

regards

Massis


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: camlibs/ptp2/library.c
===================================================================
--- camlibs/ptp2/library.c	(revision 14883)
+++ camlibs/ptp2/library.c	(working copy)
@@ -7179,9 +7179,12 @@
 		ptp_getfilesystemmanifest (params, 0x00010001, 0, 0, &data);
 	}
 #endif
-	/* hmm ...
-	ptp_list_folder (params, PTP_HANDLER_SPECIAL, PTP_HANDLER_SPECIAL);
-	 */
+
+	/* avoid doing this on the Sonys DSLRs in control mode, they hang. :( */
+
+	if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_SONY)
+		ptp_list_folder (params, PTP_HANDLER_SPECIAL, PTP_HANDLER_SPECIAL);
+
 	/* read the root directory to avoid the "DCIM WRONG ROOT" bugs */
 	CR (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera));
 	{

Reply via email to