eject -X reports "error while finding CD-ROM name".
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eject |
New
|
Undecided
|
|||
eject (Debian) |
Fix Released
|
Unknown
|
|||
eject (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: eject
eject -X returns status 1 and the message "eject: error while finding CD-ROM name". Adding the -v option shows:
$ eject -Xv
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/scd0'
eject: `/dev/scd0' is not mounted
eject: `/dev/scd0' is not a mount point
eject: listing CD-ROM speed
eject: error while finding CD-ROM name
It appears to be complaining because /proc/sys/
(A workaround note: I recompiled eject telling it to look at a text file rather than in /proc, and changing the name to 'scd0' fixed it.)
I am running eject 2.1.5-6ubuntu1 on Hardy.
Changed in eject: | |
status: | New → Confirmed |
Changed in eject: | |
status: | Unknown → Fix Released |
Attached find a patch to the original sources which will follow symlinks from the 'device name' line in /proc/sys/ dev/cdrom/ info.
It assumes that device names listed in the 'drive name' section of /proc/sys/ dev/cdrom/ info exist in /dev. If this is wrong, then this patch will break portability somewhere.
This allows the -X option to once again work on the current kernel in Hardy.