This relates to the patch that was added for bug #62612, which adds MacOSX style of ejecting/loading the cd-rom tray through the use of an option -T. I think I found three problems with this patch. First, the "exit(0);" in the section that handles the -T option is misplaced. Allowing options that appear after the -T option to be processed. Second, the EjectCdrom() is not checked for errors. I found this by mounting the device and running `eject -T -v`, which lead to me seeing the third problem. Third, the section that handles the -T option is misplaced. It should occur after the device(s) is/are unmounted, otherwise it will not eject.
Created attachment 68792 [details, diff] eject-2.0.13-toggle-fix.patch Fixes problems with earlier patch.
*** This bug has been marked as a duplicate of 122256 ***