Changeset 67124 in vbox for trunk/src/VBox
- Timestamp:
- May 28, 2017 12:21:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r66602 r67124 64 64 65 65 /** File format. */ 66 typedef enum RTZIPTAR FORMAT66 typedef enum RTZIPTARCMDFORMAT 67 67 { 68 RTZIPTAR FORMAT_INVALID = 0,68 RTZIPTARCMDFORMAT_INVALID = 0, 69 69 /** Autodetect if possible, defaulting to TAR. */ 70 RTZIPTAR FORMAT_AUTO_DEFAULT,70 RTZIPTARCMDFORMAT_AUTO_DEFAULT, 71 71 /** TAR. */ 72 RTZIPTAR FORMAT_TAR,72 RTZIPTARCMDFORMAT_TAR, 73 73 /** XAR. */ 74 RTZIPTAR FORMAT_XAR75 } RTZIPTAR FORMAT;74 RTZIPTARCMDFORMAT_XAR 75 } RTZIPTARCMDFORMAT; 76 76 77 77 … … 85 85 { 86 86 /** The file format. */ 87 RTZIPTAR FORMATenmFormat;87 RTZIPTARCMDFORMAT enmFormat; 88 88 89 89 /** The operation (Acdrtux or RTZIPTARCMD_OPT_DELETE). */ … … 258 258 * Open the filesystem stream. 259 259 */ 260 if (pOpts->enmFormat == RTZIPTAR FORMAT_TAR)260 if (pOpts->enmFormat == RTZIPTARCMDFORMAT_TAR) 261 261 rc = RTZipTarFsStreamFromIoStream(hVfsIos, 0/*fFlags*/, phVfsFss); 262 else if (pOpts->enmFormat == RTZIPTAR FORMAT_XAR)262 else if (pOpts->enmFormat == RTZIPTARCMDFORMAT_XAR) 263 263 #ifdef IPRT_WITH_XAR /* Requires C++ and XML, so only in some configruation of IPRT. */ 264 264 rc = RTZipXarFsStreamFromIoStream(hVfsIos, 0/*fFlags*/, phVfsFss); … … 1011 1011 RTZIPTARCMDOPS Opts; 1012 1012 RT_ZERO(Opts); 1013 Opts.enmFormat = RTZIPTAR FORMAT_AUTO_DEFAULT;1013 Opts.enmFormat = RTZIPTARCMDFORMAT_AUTO_DEFAULT; 1014 1014 Opts.uidOwner = NIL_RTUID; 1015 1015 Opts.gidGroup = NIL_RTUID; … … 1140 1140 case RTZIPTARCMD_OPT_FORMAT: 1141 1141 if (!strcmp(ValueUnion.psz, "auto") || !strcmp(ValueUnion.psz, "default")) 1142 Opts.enmFormat = RTZIPTAR FORMAT_AUTO_DEFAULT;1142 Opts.enmFormat = RTZIPTARCMDFORMAT_AUTO_DEFAULT; 1143 1143 else if (!strcmp(ValueUnion.psz, "tar")) 1144 Opts.enmFormat = RTZIPTAR FORMAT_TAR;1144 Opts.enmFormat = RTZIPTARCMDFORMAT_TAR; 1145 1145 else if (!strcmp(ValueUnion.psz, "xar")) 1146 Opts.enmFormat = RTZIPTAR FORMAT_XAR;1146 Opts.enmFormat = RTZIPTARCMDFORMAT_XAR; 1147 1147 else 1148 1148 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "Unknown archive format: '%s'", ValueUnion.psz);
Note:
See TracChangeset
for help on using the changeset viewer.