[vbox-dev] bug - TRANSIENT guest property can't get deleted?

Michael Thayer michael.thayer at oracle.com
Fri Jul 30 09:09:48 GMT 2010


Hello Huihong,

Le vendredi 23 juillet 2010 à 11:32 +0200, Michael Thayer a écrit :
> Le jeudi 22 juillet 2010 à 18:50 -0700, Huihong Luo a écrit :
> > when a TRANSIENT guest property is deleted, it becomes permanent after
> > vm is shutdown. kind of weird.
> Confirmed, will investigate.
This is fixed in the 3.2 branch as follows:

Index: src/VBox/Main/MachineImpl.cpp
===================================================================
--- src/VBox/Main/MachineImpl.cpp
+++ src/VBox/Main/MachineImpl.cpp
@@ -10374,5 +10374,5 @@
                 break;
             }
-        if (aValue != NULL)
+        if (aValue != NULL && aValue[0] != '\0')
         {
             HWData::GuestProperty property = { aName, aValue, aTimestamp, fFlags };

It is not yet fixed in trunk, as we want to do a more invasive fix
involving a proper delete API.

Regards,

Michael
-- 
ORACLE Deutschland B.V. & Co. KG   Michael Thayer
Werkstrasse 24                     VirtualBox engineer
71384 Weinstadt, Germany           mailto:michael.thayer at sun.com

Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven 






More information about the vbox-dev mailing list