Hello community, here is the log from the commit of package eject checked in at Tue Jun 3 00:54:15 CEST 2008. -------- --- eject/eject.changes 2008-05-27 17:03:44.000000000 +0200 +++ /mounts/work_src_done/STABLE/eject/eject.changes 2008-06-02 23:22:02.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Jun 2 23:21:16 CEST 2008 - anicka@suse.cz + +- do umount before attempting to toggle (bnc#374526) + +------------------------------------------------------------------- New: ---- eject-2.1.0-umount.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ eject.spec ++++++ --- /var/tmp/diff_new_pack.N12342/_old 2008-06-03 00:53:57.000000000 +0200 +++ /var/tmp/diff_new_pack.N12342/_new 2008-06-03 00:53:57.000000000 +0200 @@ -19,7 +19,7 @@ AutoReqProv: on Summary: A Program to Eject Media under Software Control Version: 2.1.0 -Release: 113 +Release: 115 Source: %{name}-%{version}.tar.bz2 Patch1: %{name}-%{version}-subfs.diff Patch3: %{name}-%{version}-scsi.diff @@ -27,6 +27,7 @@ Patch5: %{name}-%{version}-prototypes.diff Patch6: %{name}-%{version}-toggle.diff Patch7: %{name}-%{version}-status.diff +Patch8: %{name}-%{version}-umount.diff PreReq: permissions BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -51,6 +52,7 @@ %patch5 %patch6 %patch7 +%patch8 %build aclocal @@ -81,6 +83,8 @@ %{_bindir}/* %changelog +* Tue Jun 03 2008 anicka@suse.cz +- do umount before attempting to toggle (bnc#374526) * Tue May 27 2008 anicka@suse.cz - BuildRequire sg3_utils-devel instead of scsi * Tue May 27 2008 anicka@suse.cz ++++++ eject-2.1.0-umount.diff ++++++ --- eject.c +++ eject.c @@ -1109,16 +1109,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); @@ -1135,6 +1125,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) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org