- Timestamp:
- Feb 3, 2023 11:02:49 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r98459 r98460 126 126 /** Whether to handle directories recursively or not. Defaults to \c true. */ 127 127 bool fRecursive; 128 /** The compressor/decompressor method to employ (0, z or j ). */128 /** The compressor/decompressor method to employ (0, z or j or J). */ 129 129 char chZipper; 130 130 … … 332 332 RTFSOBJINFO paObjInfo[3], const char *pszDst, PRTERRINFOSTATIC pErrInfo) 333 333 { 334 RT_NOREF(paObjInfo); 335 334 336 if (pOpts->fVerbose) 335 337 RTPrintf("%s\n", pszDst); … … 595 597 RTMsgError("Failed to open gzip decompressor: %Rrc", rc); 596 598 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 597 608 598 609 /* bunzip2 */ … … 859 870 break; 860 871 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 861 881 /* bunzip2 */ 862 882 case 'j': … … 1666 1686 " -z, --gzip, --gunzip, --ungzip (all)\n" 1667 1687 " 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 1668 1692 "\n"); 1669 1693 RTPrintf("Misc Options:\n" … … 1748 1772 { "--gunzip", 'z', RTGETOPT_REQ_NOTHING }, 1749 1773 { "--ungzip", 'z', RTGETOPT_REQ_NOTHING }, 1774 #ifdef IPRT_WITH_LZMA 1775 { "--xz", 'J', RTGETOPT_REQ_NOTHING }, 1776 #endif 1750 1777 1751 1778 /* other options. */ … … 1840 1867 case 'j': 1841 1868 case 'z': 1869 #ifdef IPRT_WITH_LZMA 1870 case 'J': 1871 #endif 1842 1872 if (Opts.chZipper) 1843 1873 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "You may only specify one compressor / decompressor");
Note:
See TracChangeset
for help on using the changeset viewer.