VirtualBox

Ignore:
Timestamp:
Apr 28, 2020 1:40:01 PM (5 years ago)
Author:
vboxsync
Message:

bugref:9699. Added the OVA package existence check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp

    r84038 r84047  
    18951895    Utf8Str strApplianceFullPath;
    18961896
     1897    if (strOvfFilename.isEmpty())
     1898        return RTMsgErrorExit(RTEXITCODE_FAILURE, "The OVA package name is empty");
     1899
    18971900    do
    18981901    {
     1902        char *pszAbsFilePath = RTPathAbsDup(strOvfFilename.c_str());
     1903
     1904        if (!RTFileExists(pszAbsFilePath))
     1905            return RTMsgErrorExit(RTEXITCODE_FAILURE, "The OVA package %s wasn't found", pszAbsFilePath);
     1906
    18991907        ComPtr<IAppliance> pAppliance;
    19001908        CHECK_ERROR_BREAK(arg->virtualBox, CreateAppliance(pAppliance.asOutParam()));
    1901 
    1902         char *pszAbsFilePath = RTPathAbsDup(strOvfFilename.c_str());
    19031909
    19041910        ComPtr<IProgress> progressRead;
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