VirtualBox

Changeset 84455 in vbox


Ignore:
Timestamp:
May 22, 2020 12:30:06 PM (5 years ago)
Author:
vboxsync
Message:

trancate the imported machine name. Use only the last 12 characters from GUID string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r84381 r84455  
    14311431                com::Guid newId;
    14321432                newId.create();
    1433                 strVMName.append("__").append(newId.toString());
     1433                /*
     1434                 * GUID has the string form "00000000-0000-0000-0000-00000000000".
     1435                 * Find the last part and append only it. The last 12 characters.
     1436                 */
     1437                const char* cpLast = strrchr(newId.toString().c_str(), '-');
     1438                strVMName.append("__").append(cpLast+1);
     1439
    14341440                vsd->RemoveDescriptionByType(VirtualSystemDescriptionType_Name);
    14351441                vsd->AddDescription(VirtualSystemDescriptionType_Name,
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