VirtualBox

Changeset 98461 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Feb 3, 2023 11:16:23 AM (2 years ago)
Author:
vboxsync
Message:

Runtime/common/zip/tarcmd.cpp: Add support for cpio archives and archiving symlinks [build fix, committed too much]

File:
1 edited

Legend:

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

    r98460 r98461  
    126126    /** Whether to handle directories recursively or not. Defaults to \c true. */
    127127    bool            fRecursive;
    128     /** The compressor/decompressor method to employ (0, z or j or J). */
     128    /** The compressor/decompressor method to employ (0, z or j). */
    129129    char            chZipper;
    130130
     
    332332                                            RTFSOBJINFO paObjInfo[3], const char *pszDst, PRTERRINFOSTATIC pErrInfo)
    333333{
    334     RT_NOREF(paObjInfo);
    335 
    336334    if (pOpts->fVerbose)
    337335        RTPrintf("%s\n", pszDst);
     
    597595                RTMsgError("Failed to open gzip decompressor: %Rrc", rc);
    598596            break;
    599 
    600 #ifdef IPRT_WITH_LZMA
    601         /* xz/lzma */
    602         case 'J':
    603             rc = RTZipXzCompressIoStream(hVfsIos, 0 /*fFlags*/, 6, &hVfsIosComp);
    604             if (RT_FAILURE(rc))
    605                 RTMsgError("Failed to open xz compressor: %Rrc", rc);
    606             break;
    607 #endif
    608597
    609598        /* bunzip2 */
     
    870859            break;
    871860
    872 #ifdef IPRT_WITH_LZMA
    873         /* xz/lzma */
    874         case 'J':
    875             rc = RTZipXzDecompressIoStream(hVfsIos, 0 /*fFlags*/, &hVfsIosDecomp);
    876             if (RT_FAILURE(rc))
    877                 RTMsgError("Failed to open gzip decompressor: %Rrc", rc);
    878             break;
    879 #endif
    880 
    881861        /* bunzip2 */
    882862        case 'j':
     
    16861666             "    -z, --gzip, --gunzip, --ungzip        (all)\n"
    16871667             "        Compress/decompress the archive with gzip.\n"
    1688 #ifdef IPRT_WITH_LZMA
    1689              "    -J, --xz                              (all)\n"
    1690              "        Compress/decompress the archive using xz/lzma.\n"
    1691 #endif
    16921668             "\n");
    16931669    RTPrintf("Misc Options:\n"
     
    17721748        { "--gunzip",               'z',                                RTGETOPT_REQ_NOTHING },
    17731749        { "--ungzip",               'z',                                RTGETOPT_REQ_NOTHING },
    1774 #ifdef IPRT_WITH_LZMA
    1775         { "--xz",                   'J',                                RTGETOPT_REQ_NOTHING },
    1776 #endif
    17771750
    17781751        /* other options. */
     
    18671840            case 'j':
    18681841            case 'z':
    1869 #ifdef IPRT_WITH_LZMA
    1870             case 'J':
    1871 #endif
    18721842                if (Opts.chZipper)
    18731843                    return RTMsgErrorExit(RTEXITCODE_SYNTAX, "You may only specify one compressor / decompressor");
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