Patch by Stuart W. Finlayson http://bugs.gentoo.org/122256 --- eject.c +++ eject.c @@ -1225,16 +1225,6 @@ exit(0); } - /* handle -T option */ - if (T_option) { - if (v_option) - printf(_("%s: toggling tray\n"), programName); - fd = OpenDevice(deviceName); - ToggleTray(fd); - HandleXOption(deviceName); - exit(0); - } - /* handle -X option */ if (X_option) { if (v_option) @@ -1260,6 +1250,16 @@ if ((m_option != 1) && (pattern != 0)) UnmountDevices(pattern); + /* handle -T option */ + if (T_option) { + if (v_option) + printf(_("%s: toggling tray\n"), programName); + fd = OpenDevice(deviceName); + ToggleTray(fd); + HandleXOption(deviceName); + exit(0); + } + /* handle -c option */ if (c_option) { if (v_option)