Changeset 34495 in vbox
- Timestamp:
- Nov 30, 2010 10:12:42 AM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp
r34442 r34495 612 612 613 613 /* 614 * Set up the destination path and directory.614 * Set up the destination path. 615 615 */ 616 616 char szDstPath[RTPATH_MAX]; … … 619 619 return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTPathAbs('%s',,) failed: %Rrc", pszDirDst, rc); 620 620 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);625 621 szDstPath[offDstPath++] = '/'; 626 622 szDstPath[offDstPath] = '\0'; … … 674 670 RTVfsIoStrmRelease(hVfsIos); 675 671 } 676 else 672 else if (strcmp(".", pszName) && strcmp("./", pszName)) 677 673 rcExit = UnpackExtPackDir(szDstPath, hVfsObj); 678 674 } … … 987 983 * If all checks out correctly, rename it to the final directory. 988 984 */ 985 RTDirCreate(pszBaseDir, 0755); 989 986 rc = RTDirCreate(szTmpPath, 0700); 990 987 if (RT_FAILURE(rc)) -
trunk/src/VBox/Runtime/common/checksum/manifest3.cpp
r34435 r34495 471 471 PRTMANIFESTPTIOS pThis = (PRTMANIFESTPTIOS)RTVfsIoStreamToPrivate(hVfsPtIos, &g_rtManifestPassthruIosOps); 472 472 AssertReturn(pThis, VERR_INVALID_HANDLE); 473 AssertReturn( pThis->fAddedEntry, VERR_WRONG_ORDER);473 AssertReturn(!pThis->fAddedEntry, VERR_WRONG_ORDER); 474 474 475 475 pThis->fAddedEntry = true;
Note:
See TracChangeset
for help on using the changeset viewer.