VirtualBox

Changeset 50086 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 16, 2014 3:15:45 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91608
Message:

tarvfs.cpp: Fix for VMWare header with non-posix version field content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/tarvfs.cpp

    r44529 r50086  
    350350            enmType = RTZIPTARTYPE_POSIX;
    351351        else if (   pTar->Common.magic[5]   == ' '
    352                 && pTar->Common.version[0] == ' '
    353                 && pTar->Common.version[1] == '\0')
    354             enmType = RTZIPTARTYPE_GNU;
     352                 && pTar->Common.version[0] == ' '
     353                 && pTar->Common.version[1] == '\0')
     354            enmType = RTZIPTARTYPE_GNU;           
     355        else if (   pTar->Common.magic[5]   == '\0' /* VMWare ambiguity - they probably mean posix but */       
     356                 && pTar->Common.version[0] == ' '  /*                    got the version wrong. */
     357                 && pTar->Common.version[1] == '\0')
     358            enmType = RTZIPTARTYPE_POSIX;
    355359        else
    356360            return VERR_TAR_NOT_USTAR_V00;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette