Subject: gphoto2 does not report permissions problems when accessing usb 
filesystem
Package: gphoto2
Version: 2.1.5-1
Severity: normal

*** Please type your report below this line ***

When running gphoto2 to scan or access USB-based cameras, the filesystem
under /proc/bus/usb is accessed.  By default, the device files in this
filesystem are not writable by users other than root, and so this
activity fails.  However, the error given by gphoto2 is incorrect.


    [EMAIL PROTECTED]:~ >gphoto2 -L --port=usb: --camera="Canon EOS D60"

    *** Error ***              
    An error occurred in the io-library ('Bad parameters'): Could not find USB 
device (vendor 0x4a9, product 0x3060). Make sure this device is connected to 
the computer.
    *** Error (-2: 'Bad parameters') ***       

an strace reveals that the reason it cannot "find" the camara is that it
cannot open any of the USB devices it is attempting to open , because it
attempts to open them O_RDWR, and only root has this access.

A number of remedies are available to me, the user, but I believe a
README should be added to the package referring to this issue, and that
the program should be modified to report permissions problems.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-jsr
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_US.iso88591)

Versions of packages gphoto2 depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libcdk4                     4.9.9-4      C-based curses widget library
ii  libexif10                   0.6.9-6      library to parse EXIF files
ii  libgphoto2-2                2.1.6-1      gphoto2 digital camera library
ii  libgphoto2-port0            2.1.6-1      gphoto2 digital camera port librar
ii  libjpeg62                   6b-10        The Independent JPEG Group's JPEG 
ii  libncurses5                 5.4-9        Shared libraries for terminal hand
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters
ii  libreadline4                4.3-15       GNU readline and history libraries

gphoto2 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to