VirtualBox

Changeset 28691 in vbox


Ignore:
Timestamp:
Apr 24, 2010 6:57:23 PM (15 years ago)
Author:
vboxsync
Message:

Machine::DeleteSettings: Delete the XML backup (VM.xml-prev) as well as any XML files we've failed to commit (VM.xml-tmp).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r28669 r28691  
    37853785                            vrc);
    37863786
     3787        /* Delete any backup or uncommitted XML files. Ignore failures.
     3788           See the fSafe parameter of xml::XmlFileWriter::write for details. */
     3789        Utf8Str otherXml = Utf8StrFmt("%s-tmp", mData->m_strConfigFileFull.c_str());
     3790        RTFileDelete(otherXml.c_str());
     3791        otherXml = Utf8StrFmt("%s-prev", mData->m_strConfigFileFull.c_str());
     3792        RTFileDelete(otherXml.c_str());
     3793
    37873794        /* delete the Logs folder, nothing important should be left
    37883795         * there (we don't check for errors because the user might have
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette