Index: /trunk/Config.kmk
===================================================================
--- /trunk/Config.kmk	(revision 42788)
+++ /trunk/Config.kmk	(revision 42789)
@@ -209,12 +209,12 @@
 #       publisher so that RTStrVersionCompare have a chance of comparing
 #       prerelease from different publishers correctly.
-VBOX_VERSION_STRING = $(VBOX_VERSION_STRING_RAW)_BETA1$(VBOX_BUILD_PUBLISHER)
+VBOX_VERSION_STRING = $(VBOX_VERSION_STRING_RAW)_RC1$(VBOX_BUILD_PUBLISHER)
 
 # Force the additions.sh script to get an exact additions build when we're doing the release.
 ifeq ($(int-mod $(VBOX_VERSION_BUILD),2),0)
-# export VBOX_ADDITIONS_SH_MODE     = release
-# export VBOX_DOCUMENTATION_SH_MODE = release
-# export VBOX_EFI_SH_MODE           = release
-# export VBOX_EXTPACKS_SH_MODE      = release
+ export VBOX_ADDITIONS_SH_MODE     = release
+ export VBOX_DOCUMENTATION_SH_MODE = release
+ export VBOX_EFI_SH_MODE           = release
+ export VBOX_EXTPACKS_SH_MODE      = release
 endif
 
Index: /trunk/debian/changelog
===================================================================
--- /trunk/debian/changelog	(revision 42788)
+++ /trunk/debian/changelog	(revision 42789)
@@ -1,2 +1,8 @@
+virtualbox-ose (4.2.0~rc1) unstable; urgency=low
+
+  * rebuild Debian package
+
+ -- Oracle Corporation <info@virtualbox.org>  Mon, 13 Aug 2012 12:00:00 +0200
+
 virtualbox-ose (4.2.0~beta1) unstable; urgency=low
 
Index: /trunk/doc/manual/user_ChangeLogImpl.xml
===================================================================
--- /trunk/doc/manual/user_ChangeLogImpl.xml	(revision 42788)
+++ /trunk/doc/manual/user_ChangeLogImpl.xml	(revision 42789)
@@ -2,5 +2,5 @@
 
   <sect1>
-    <title>Version 4.2.0 Beta 1 (2012-08-03)</title>
+    <title>Version 4.2.0 Release Candidate 1 (2012-08-13)</title>
 
     <para>This is a major update. The following major new features
@@ -55,4 +55,9 @@
 
     <itemizedlist>
+
+      <listitem>
+        <para>Mac OS X hosts: sign application and installer to avoid warnings
+        on Mountain Lion</para>
+      </listitem>
 
       <listitem>
Index: /trunk/src/VBox/Main/src-server/MachineImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-server/MachineImpl.cpp	(revision 42788)
+++ /trunk/src/VBox/Main/src-server/MachineImpl.cpp	(revision 42789)
@@ -5944,12 +5944,10 @@
 
     {
-        /* find all attached devices to the appropriate storage controller and detach them all*/
-        MediaData::AttachmentList::const_iterator it = mMediaData->mAttachments.begin();
-
-        uint16_t howManyAttach = mMediaData->mAttachments.size();
-
-        for (uint16_t i=0;i<howManyAttach; ++i)
-        {
-            MediumAttachment *pAttachTemp = *it++;
+        /* find all attached devices to the appropriate storage controller and detach them all */
+        size_t howManyAttach = mMediaData->mAttachments.size();
+
+        for (size_t i = 0; i < howManyAttach; ++i)
+        {
+            MediumAttachment *pAttachTemp = mMediaData->mAttachments.front();
 
             AutoCaller localAutoCaller(pAttachTemp);
