Patch by Stuart W. Finlayson http://bugs.gentoo.org/122256 --- eject.c +++ eject.c @@ -1028,16 +1028,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 only */ if (!c_option) HandleXOption(deviceName); @@ -1054,6 +1044,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)