VirtualBox

Changeset 59522 in vbox for trunk


Ignore:
Timestamp:
Jan 29, 2016 3:09:48 PM (9 years ago)
Author:
vboxsync
Message:

Backed out r105295 (manifest hack).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/checksum/manifest.cpp

    r59516 r59522  
    5252    char *pszManifestDigest;
    5353    PRTMANIFESTTEST pTestPattern;
    54     bool fSkipThisFile;
    5554} RTMANIFESTFILEENTRY;
    5655typedef RTMANIFESTFILEENTRY* PRTMANIFESTFILEENTRY;
     
    349348    /* Fill our compare list */
    350349    for (size_t i = 0; i < cTests; ++i)
    351     {
    352350        paFiles[i].pTestPattern = &paTests[i];
    353         paFiles[i].fSkipThisFile = false;
    354     }
    355351
    356352    char *pcBuf = (char*)pvBuf;
     
    472468                break;
    473469            }
    474             else
    475             {
    476                 /*
    477                 * use case when manifest file doesn't contain the SHA digest of OVF description file
    478                 * OVF2.0 standard says that "The manifest file shall contain SHA digests for all distinct files
    479                 * 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 suffix
    483 
    484                 if (RTStrICmp(suffix, ".ovf") == 0)
    485                 {
    486                     paFiles[i].fSkipThisFile = true;//workaround for this case
    487                     fFound = true;
    488                 }
    489             }
    490470        }
    491471        RTMemTmpFree(pszName);
     
    508488        for (size_t i = 0; i < cTests; ++i)
    509489        {
    510             if(paFiles[i].fSkipThisFile == true)
    511                 continue;
    512490            /* If there is an entry in the file list, which hasn't an
    513491             * equivalent in the manifest file, its an error. */
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