Package: gphoto2 Version: 2.4.0-1 Severity: normal
When I run "gphoto2 -P" from within a directory where the user has no write permissions, gphoto shows that the file is being retreived, and shows a successful exit, though the files are not actually saved on to the harddisk. A sample directory permission where the command failed:- drwxr-xr-x 3 paivakil root 4096 2008-04-21 10:59 2008March2 A different user, who is not a member of the "root" group ran gphoto2 -P from within the above directory, and was told that the files are being downloaded. Running ls at the end of the process shows that the files were not actually saved:- Output of the command:- gphoto2 -P Downloading '100_2496.JPG' from folder '/store_00010001/DCIM/100KC663'... Saving file as 100_2496.JPG Downloading '100_2497.JPG' from folder '/store_00010001/DCIM/100KC663'... Saving file as 100_2497.JPG Downloading 'DDISCVRY.DPS' from folder '/store_00020001'... Saving file as DDISCVRY.DPS Resulst of ls -la at end of the command:- total 22632 -rw------- 1 nandana camera 1486326 2008-03-03 21:23 100_1523.JPG -rw------- 1 nandana camera 1425718 2008-03-03 21:23 100_1524.JPG -rw------- 1 nandana camera 1467106 2008-03-03 21:23 100_1525.JPG -rw------- 1 nandana camera 1238891 2008-03-03 21:23 100_1526.JPG -rw------- 1 nandana camera 1251119 2008-03-03 21:24 100_1527.JPG -rw------- 1 nandana camera 1424014 2008-03-03 21:24 100_1528.JPG -rw------- 1 nandana camera 1066989 2008-03-03 21:24 100_1529.JPG -rw------- 1 nandana camera 1244265 2008-03-03 21:24 100_1530.JPG -rw------- 1 nandana camera 1945151 2008-03-03 21:24 100_1531.JPG -rw------- 1 nandana camera 1664090 2008-03-03 21:24 100_1532.JPG -rw------- 1 nandana camera 1411502 2008-03-03 21:24 100_1533.JPG -rw------- 1 nandana camera 675804 2008-03-03 21:24 100_1534.JPG -rw------- 1 nandana camera 1290160 2008-03-03 21:24 100_1535.JPG -rw------- 1 nandana camera 1384751 2008-03-03 21:24 100_1536.JPG -rw------- 1 nandana camera 1386654 2008-03-03 21:24 100_1537.JPG -rw------- 1 nandana camera 740676 2008-03-03 21:24 100_1538.JPG -rw------- 1 nandana camera 1161485 2008-03-03 21:24 100_1539.JPG -rw------- 1 nandana camera 805859 2008-03-03 21:24 100_1540.JPG (Those files were already in the folder; before running gphoto; downloaded earlier, and chmod'ed. the point I want to make is that the two files we are told are being saved are not found in the listing). But running under strace does show some problems:- ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254af0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254af0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254af0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 write(1, "Downloading... |-----------------"..., 80Downloading... |---------------------------------------------| 100.0% ) = 80 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254af0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254af0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254af0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254b68) = 0 write(1, " "..., 80 ) = 80 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe9254b30) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254ba8) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254ba8) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9254ba8) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=265, ...}) = 0 stat("100_2497.JPG", 0x7fffe9255130) = -1 ENOENT (No such file or directory) write(1, "Saving file as 100_2497.JPG\n"..., 28Saving file as 100_2497.JPG ) = 28 brk(0xf8c000) = 0xf8c000 open("tmpfileX2ivXJ", O_RDWR|O_CREAT|O_EXCL, 0600) = -1 EACCES (Permission denied) write(2, "Downloading 'DDISCVRY.DPS' from f"..., 59Downloading 'DDISCVRY.DPS' from folder '/store_00020001'...) = 59 write(2, "\n"..., 1 ) = 1 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=265, ...}) = 0 stat("DDISCVRY.DPS", 0x7fffe92551d0) = -1 ENOENT (No such file or directory) write(1, "Saving file as DDISCVRY.DPS\n"..., 28Saving file as DDISCVRY.DPS ) = 28 munmap(0x7f9cde59f000, 2621440) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe92555f0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9255668) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9255668) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fffe92555a0) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9255618) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9255618) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 0 (Timeout) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9255618) = -1 EAGAIN (Resource temporarily unavailable) select(5, NULL, [4], NULL, {0, 1000}) = 1 (out [4], left {0, 1000}) ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fffe9255618) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fffe9256724) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fffe9256724) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fffe9256724) = 0 ioctl(4, USBDEVFS_RELEASEINTERFACE, 0x7fffe9256744) = 0 close(4) = 0 munmap(0x7f9cdea4a000, 2386664) = 0 munmap(0x7f9cdec91000, 2113376) = 0 brk(0x970000) = 0x970000 exit_group(0) = ? (only last few lines of strace output). About the camera:- [10879.508011] usb 4-1: new full speed USB device using uhci_hcd and address 12 [10879.705686] usb 4-1: configuration #1 chosen from 1 choice [10879.708824] usb 4-1: New USB device found, idVendor=040a, idProduct=05a8 [10879.708831] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [10879.708834] usb 4-1: Product: KODAK EasyShare C663 Zoom Digital Camera [10879.708837] usb 4-1: Manufacturer: Eastman Kodak Company [10879.708840] usb 4-1: SerialNumber: KCKEZ54900455 -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gphoto2 depends on: ii libc6 2.9-0exp1 GNU C Library: Shared libraries ii libcdk5 5.0.20060507-1 C-based curses widget library ii libexif12 0.6.16-2.1 library to parse EXIF files ii libgphoto2-2 2.4.3-1 gphoto2 digital camera library ii libgphoto2-port0 2.4.3-1 gphoto2 digital camera port librar ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libncurses5 5.7+20090110-1 shared libraries for terminal hand ii libpopt0 1.14-4 lib for parsing cmdline parameters ii libreadline5 5.2-3 GNU readline and history libraries ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library gphoto2 recommends no packages. Versions of packages gphoto2 suggests: pn gthumb <none> (no description available) pn gtkam <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org