VirtualBox

Changeset 34495 in vbox


Ignore:
Timestamp:
Nov 30, 2010 10:12:42 AM (14 years ago)
Author:
vboxsync
Message:

Made extension pack installation work.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r34442 r34495  
    612612
    613613    /*
    614      * Set up the destination path and directory.
     614     * Set up the destination path.
    615615     */
    616616    char szDstPath[RTPATH_MAX];
     
    619619        return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTPathAbs('%s',,) failed: %Rrc", pszDirDst, rc);
    620620    size_t offDstPath = RTPathStripTrailingSlash(szDstPath);
    621 
    622     rc = RTDirCreate(szDstPath, 0700);
    623     if (RT_FAILURE(rc))
    624         return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTDirCreate('%s',0700) failed: %Rrc", szDstPath, rc);
    625621    szDstPath[offDstPath++] = '/';
    626622    szDstPath[offDstPath]   = '\0';
     
    674670                        RTVfsIoStrmRelease(hVfsIos);
    675671                    }
    676                     else
     672                    else if (strcmp(".", pszName) && strcmp("./", pszName))
    677673                        rcExit = UnpackExtPackDir(szDstPath, hVfsObj);
    678674                }
     
    987983     * If all checks out correctly, rename it to the final directory.
    988984     */
     985    RTDirCreate(pszBaseDir, 0755);
    989986    rc = RTDirCreate(szTmpPath, 0700);
    990987    if (RT_FAILURE(rc))
  • trunk/src/VBox/Runtime/common/checksum/manifest3.cpp

    r34435 r34495  
    471471    PRTMANIFESTPTIOS pThis = (PRTMANIFESTPTIOS)RTVfsIoStreamToPrivate(hVfsPtIos, &g_rtManifestPassthruIosOps);
    472472    AssertReturn(pThis, VERR_INVALID_HANDLE);
    473     AssertReturn(pThis->fAddedEntry, VERR_WRONG_ORDER);
     473    AssertReturn(!pThis->fAddedEntry, VERR_WRONG_ORDER);
    474474
    475475    pThis->fAddedEntry = true;
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