eject -X sets speed to maximum
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eject (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: eject
`eject -x 0' sets the speed to maximum. `eject -X' is meant to list the available speeds. However, it also leaves the speed set to maximum. This can cause problems if you've deliberately set it to a low speed, list the available speeds, and then burn a CD; you're burning on the maximum speed without realising. It's apparent from the source that the bug exists; ListSpeedCdrom() sets the speed to maximum in order to find out the limit for the loop which tries speed 1, 2, 3, etc., in turn.
Either eject(1) needs altering to match reality or, really the correct solution, eject needs to restore the current speed after setting it to all the possible ones with a warning in the manual that it changes the speed and an interrupted eject may leave the speed at a random setting.
Setting to Confirmed because I think the bug is apparent from the source.