- Timestamp:
- Jan 29, 2016 3:09:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/checksum/manifest.cpp
r59516 r59522 52 52 char *pszManifestDigest; 53 53 PRTMANIFESTTEST pTestPattern; 54 bool fSkipThisFile;55 54 } RTMANIFESTFILEENTRY; 56 55 typedef RTMANIFESTFILEENTRY* PRTMANIFESTFILEENTRY; … … 349 348 /* Fill our compare list */ 350 349 for (size_t i = 0; i < cTests; ++i) 351 {352 350 paFiles[i].pTestPattern = &paTests[i]; 353 paFiles[i].fSkipThisFile = false;354 }355 351 356 352 char *pcBuf = (char*)pvBuf; … … 472 468 break; 473 469 } 474 else475 {476 /*477 * use case when manifest file doesn't contain the SHA digest of OVF description file478 * OVF2.0 standard says that "The manifest file shall contain SHA digests for all distinct files479 * referenced in the References element of the OVF descriptor and for no other files."480 * So we have OVF description file in our package file list but there is no SHA digest for him.481 */482 char *suffix = RTPathSuffix(paFiles[i].pTestPattern->pszTestFile);//get suffix483 484 if (RTStrICmp(suffix, ".ovf") == 0)485 {486 paFiles[i].fSkipThisFile = true;//workaround for this case487 fFound = true;488 }489 }490 470 } 491 471 RTMemTmpFree(pszName); … … 508 488 for (size_t i = 0; i < cTests; ++i) 509 489 { 510 if(paFiles[i].fSkipThisFile == true)511 continue;512 490 /* If there is an entry in the file list, which hasn't an 513 491 * equivalent in the manifest file, its an error. */
Note:
See TracChangeset
for help on using the changeset viewer.