Changeset 67454 in vbox for trunk/src/VBox
- Timestamp:
- Jun 16, 2017 6:03:37 PM (8 years ago)
- Location:
- trunk/src/VBox/Runtime/common/fs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/isomaker.cpp
r67453 r67454 1447 1447 char ch; 1448 1448 size_t cchComponent = 0; 1449 while ((ch = pszPath[cchComponent]) != '\0' && RTPATH_IS_SLASH(ch))1449 while ((ch = pszPath[cchComponent]) != '\0' && !RTPATH_IS_SLASH(ch)) 1450 1450 cchComponent++; 1451 1451 if (!cchComponent) … … 3300 3300 } 3301 3301 3302 /* Save for size setting. */ 3303 uint32_t const cEntriesInFile = cEntries + 1; 3304 3302 3305 /* Check that the remaining entries are empty. */ 3303 while (cEntries < RT_ELEMENTS(pThis->aBootCatEntries) - 1U)3306 while (cEntries < RT_ELEMENTS(pThis->aBootCatEntries)) 3304 3307 { 3305 3308 AssertReturn(pThis->aBootCatEntries[cEntries].cEntries == 0, VERR_ISOMK_BOOT_CAT_ERRATIC_ENTRY); 3306 3309 cEntries++; 3307 3310 } 3311 3312 /* 3313 * Fixate the size of the boot catalog file. 3314 */ 3315 pThis->pBootCatFile->cbData = cEntriesInFile * 32; 3316 pThis->cbData += RT_ALIGN_32(cEntriesInFile * 32, RTFSISOMAKER_SECTOR_SIZE); 3308 3317 3309 3318 /* … … 4334 4343 if ((offInFile = offUnsigned - pFile->offData) < RT_ALIGN_64(pFile->cbData, RTFSISOMAKER_SECTOR_SIZE)) 4335 4344 { /* hit */ } 4336 else if (offUnsigned > pFile->offData)4345 else if (offUnsigned >= pFile->offData) 4337 4346 { 4338 4347 /* Seek forwards. */ -
trunk/src/VBox/Runtime/common/fs/isomakercmd.cpp
r67445 r67454 1108 1108 pParsed->cNamesWithSrc++; 1109 1109 1110 if (!pszEqual && fWithSrc)1110 if (!pszEqual) 1111 1111 { 1112 if (!cchName) 1113 return rtFsIsoMakerCmdSyntaxError(pOpts, "empty source file name: %s", pszSpecIn); 1114 if (cchName == 8 && strcmp(pszSpec, ":remove:") == 0) 1115 pParsed->enmSrcType = RTFSISOMKCMDPARSEDNAMES::kSrcType_Remove; 1116 else if (cchName == 13 && strcmp(pszSpec, ":must-remove:") == 0) 1117 pParsed->enmSrcType = RTFSISOMKCMDPARSEDNAMES::kSrcType_MustRemove; 1112 if (fWithSrc) 1113 { 1114 if (!cchName) 1115 return rtFsIsoMakerCmdSyntaxError(pOpts, "empty source file name: %s", pszSpecIn); 1116 if (cchName == 8 && strcmp(pszSpec, ":remove:") == 0) 1117 pParsed->enmSrcType = RTFSISOMKCMDPARSEDNAMES::kSrcType_Remove; 1118 else if (cchName == 13 && strcmp(pszSpec, ":must-remove:") == 0) 1119 pParsed->enmSrcType = RTFSISOMKCMDPARSEDNAMES::kSrcType_MustRemove; 1120 } 1118 1121 break; 1119 1122 } … … 1901 1904 if (phVfsFile) 1902 1905 *phVfsFile = NIL_RTVFSFILE; 1906 for (uint32_t i = 0; i < RT_ELEMENTS(Opts.aBootCatEntries); i++) 1907 Opts.aBootCatEntries[i].u.Section.idxImageObj = UINT32_MAX; 1903 1908 1904 1909 /* Setup option parsing. */
Note:
See TracChangeset
for help on using the changeset viewer.