VirtualBox

Changeset 94072 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 3, 2022 12:08:23 PM (3 years ago)
Author:
vboxsync
Message:

Another build fix for r150310

File:
1 edited

Legend:

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

    r94071 r94072  
    21452145
    21462146
    2147 static bool errorOccured(HRESULT hrc, const char *pszFormat, ...)
    2148 {
    2149     if (FAILED(hrc))
    2150     {
    2151         va_list va;
    2152         va_start(va, pszFormat);
    2153         Utf8Str strError(pszFormat, va);
    2154         va_end(va);
    2155         RTStrmPrintf(g_pStdErr, "%s (rc=%x)\n", strError.c_str(), hrc);
    2156         RTStrmFlush(g_pStdErr);
    2157         return true;
    2158     }
    2159     return false;
    2160 }
    2161 
    2162 
    2163 static int composeTemplatePath(const char *pcszTemplate, Bstr& strFullPath)
    2164 {
    2165     com::Utf8Str strTemplatePath;
    2166     int rc = RTPathAppPrivateNoArchCxx(strTemplatePath);
    2167     if (RT_SUCCESS(rc))
    2168         rc = RTPathAppendCxx(strTemplatePath, "UnattendedTemplates");
    2169     if (RT_SUCCESS(rc))
    2170         rc = RTPathAppendCxx(strTemplatePath, pcszTemplate);
    2171     if (RT_FAILURE(rc))
    2172     {
    2173         RTStrmPrintf(g_pStdErr, Cloud::tr("Failed to compose path to the unattended installer script templates (%Rrc)"), rc);
    2174         RTStrmFlush(g_pStdErr);
    2175     }
    2176     else
    2177         strFullPath = strTemplatePath;
    2178 
    2179     return rc;
    2180 }
    2181 
     2147/* Disabled temporarily until proxy support is implemented in libssh */
     2148#if 0
    21822149/**
    21832150 * @returns COM status code.
     
    22592226#endif /* VBOX_WITH_PROXY_INFO */
    22602227}
    2261 
    2262 static HRESULT localGatewayImagePath(const Bstr &aDefaultMachineFolder, Bstr &aLgwImage)
    2263 {
    2264     com::Utf8Str strPath(aDefaultMachineFolder);
    2265     int rc = RTPathAppendCxx(strPath, "gateways");
    2266     if (RT_SUCCESS(rc))
    2267         rc = RTPathAppendCxx(strPath, "lgw.vdi");
    2268     if (RT_SUCCESS(rc))
    2269         aLgwImage = strPath;
    2270 
    2271     return rc;
    2272 }
     2228#endif
     2229
    22732230
    22742231static RTEXITCODE setupCloudNetworkEnv(HandlerArg *a, int iFirst, PCLOUDCOMMONOPT pCommonOpts)
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