Package: eject Version: 2.1.4-1 Severity: normal When eject is run by a normal user on a USB mass storage device (as, for example, gnome-volume-manager when unmounting a USB-connected iPod) it fails due to the device being opened O_RDONLY rather than O_RDWR:
open("/dev/sdb", O_RDONLY|O_NONBLOCK) = 3 write(1, "eject: trying to eject `/dev/sdb"..., 54) = 54 ioctl(3, SG_GET_VERSION_NUM, 0xbfa0d790) = 0 ioctl(3, SG_IO, 0xbfa0d704) = -1 EPERM (Operation not permitted) write(1, "eject: SCSI eject failed\n", 25) = 25 If I change the option O_RDONLY to O_RDRW in OpenDevice() then this works as expected (although obviously that's not a sensible patch in general, so I haven't bothered to attach it.) many thanks, mark -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.1 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Versions of packages eject depends on: ii libc6 2.3.6-7 GNU C Library: Shared libraries eject recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]