Package: eject
Version: 2.0.13deb-7

We have a directory /cdrom, which is intended to be a mountpoint for CD-ROMs. When trying to eject an audio CD, the eject program's heuristic picked /cdrom as the filename to open and then to try its various ioctls to eject stuff. Needless to say, this doesn't work too well...

open("/cdrom", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, 0x5309, 0xbfffeea8) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, FIBMAP, 0xbfffed50) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, FDEJECT, 0xbfffeea8) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, MTIOCTOP or SNDCTL_MIDI_MPUMODE or MGSL_IOCGPARAMS, 0xbfffee60) = -1 ENOTTY (Inappropriate ioctl for device)


It'd be nice if eject would check if the name its heuristic picked is a block device (or a symlink to a block device), and if not continue down its list of heuristic before opening it and trying to do its ioctl thing.

 Christian



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



Reply via email to