Changeset 67254 in vbox
- Timestamp:
- Jun 2, 2017 5:29:13 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115949
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r67249 r67254 493 493 $(if $(VBOX_WITH_XPCOM),src-server/xpcom/server.cpp,) 494 494 495 src-server/ApplianceImplExport.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) 496 495 497 ifn1of ($(KBUILD_TARGET), win darwin) 496 498 VBoxSVC_SOURCES += $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c -
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r67252 r67254 2042 2042 /* 2043 2043 * Open the output file and attach a TAR creator to it. 2044 * The OVF 1.1.0 spec specifies the TAR format to be compatible with USTAR 2045 * according to POSIX 1003.1-2008. We use the 1988 spec here as it's the 2046 * only variant we currently implement. 2044 2047 */ 2045 2048 HRESULT hrc; … … 2050 2053 if (RT_SUCCESS(vrc)) 2051 2054 { 2052 /** @todo which format does the standard dictate here actually?2053 * GNU or USTAR/POSIX? */2054 2055 RTVFSFSSTREAM hVfsFssTar; 2055 vrc = RTZipTarFsStreamToIoStream(hVfsIosTar, RTZIPTARFORMAT_ GNU, 0 /*fFlags*/, &hVfsFssTar);2056 vrc = RTZipTarFsStreamToIoStream(hVfsIosTar, RTZIPTARFORMAT_USTAR, 0 /*fFlags*/, &hVfsFssTar); 2056 2057 RTVfsIoStrmRelease(hVfsIosTar); 2057 2058 if (RT_SUCCESS(vrc)) 2058 2059 { 2060 RTZipTarFsStreamSetFileMode(hVfsFssTar, 0660, 0440); 2061 RTZipTarFsStreamSetOwner(hVfsFssTar, VBOX_VERSION_MAJOR, 2062 pTask->enFormat == ovf::OVFVersion_0_9 ? "vboxovf09" 2063 : pTask->enFormat == ovf::OVFVersion_1_0 ? "vboxovf10" 2064 : pTask->enFormat == ovf::OVFVersion_2_0 ? "vboxovf20" 2065 : "vboxovf"); 2066 RTZipTarFsStreamSetGroup(hVfsFssTar, VBOX_VERSION_MINOR, 2067 "vbox_v" RT_XSTR(VBOX_VERSION_MAJOR) "." RT_XSTR(VBOX_VERSION_MINOR) "." 2068 RT_XSTR(VBOX_VERSION_MAJOR) "r" RT_XSTR(VBOX_SVN_REV)); 2069 2059 2070 hrc = i_writeFSImpl(pTask, writeLock, hVfsFssTar); 2060 2071 RTVfsFsStrmRelease(hVfsFssTar); … … 2189 2200 if (RT_SUCCESS(vrc)) 2190 2201 { 2202 RTZipTarFsStreamSetFileMode(hVfsFssTar, 0660, 0440); 2203 RTZipTarFsStreamSetOwner(hVfsFssTar, VBOX_VERSION_MAJOR, "vboxopc10"); 2204 RTZipTarFsStreamSetGroup(hVfsFssTar, VBOX_VERSION_MINOR, 2205 "vbox_v" RT_XSTR(VBOX_VERSION_MAJOR) "." RT_XSTR(VBOX_VERSION_MINOR) "." 2206 RT_XSTR(VBOX_VERSION_MAJOR) "r" RT_XSTR(VBOX_SVN_REV)); 2207 2191 2208 /* 2192 2209 * Let the Medium code do the heavy work.
Note:
See TracChangeset
for help on using the changeset viewer.