VirtualBox

Ignore:
Timestamp:
Sep 28, 2017 4:30:45 PM (7 years ago)
Author:
vboxsync
Message:

Main,iprt: Don't fail an import just because the manifest contains more entries than what we processed during the import.

File:
1 edited

Legend:

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

    r68496 r68918  
    554554    if (!pEntry2)
    555555    {
    556         RTStrPrintf(pEquals->pszError, pEquals->cbError, "'%s' not found in the 2nd manifest", pEntry1->StrCore.pszString);
    557         return VERR_NOT_EQUAL;
     556        if (!(pEquals->fFlags & RTMANIFEST_EQUALS_IGN_MISSING_ENTRIES_2ND))
     557        {
     558            RTStrPrintf(pEquals->pszError, pEquals->cbError, "'%s' not found in the 2nd manifest", pEntry1->StrCore.pszString);
     559            return VERR_NOT_EQUAL;
     560        }
     561        pEntry1->fVisited = true;
     562        return VINF_SUCCESS;
    558563    }
    559564
     
    590595        AssertReturn(pThis2->u32Magic == RTMANIFEST_MAGIC, VERR_INVALID_HANDLE);
    591596    }
    592     AssertReturn(!(fFlags & ~(RTMANIFEST_EQUALS_IGN_MISSING_ATTRS)), VERR_INVALID_PARAMETER);
     597    AssertReturn(!(fFlags & ~RTMANIFEST_EQUALS_VALID_MASK), VERR_INVALID_PARAMETER);
    593598
    594599    /*
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