Skip to content

Commit 04ee094

Browse files
Main/src-server/ApplianceImplImport.cpp: Only use the last component of the path in the tar archive extraction code, bugref:11105
svn:sync-xref-src-repo-rev: r174541
1 parent f03a69d commit 04ee094

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/VBox/Main/src-server/ApplianceImplImport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: ApplianceImplImport.cpp 114695 2026-07-14 11:41:05Z serkan.bayraktar@oracle.com $ */
1+
/* $Id: ApplianceImplImport.cpp 114705 2026-07-14 13:35:15Z alexander.eichner@oracle.com $ */
22
/** @file
33
* IAppliance and IVirtualSystem COM class implementations.
44
*/
@@ -1999,7 +1999,7 @@ HRESULT Appliance::i_importCloudImpl(TaskCloud *pTask)
19991999
if (RT_FAILURE(vrc))
20002000
throw setErrorVrc(vrc, tr("Could not read the file '%s' (%Rrc)"), strAbsSrcPath.c_str(), vrc);
20012001

2002-
Utf8StrFmt strAbsDstPath("%s%s%s", strMachineFolder.c_str(), RTPATH_SLASH_STR, pszName);
2002+
Utf8StrFmt strAbsDstPath("%s%s%s", strMachineFolder.c_str(), RTPATH_SLASH_STR, RTPathFilename(pszName));
20032003

20042004
/* Simple logic - just try to get dir info, in case of absent try to create one.
20052005
No deep errors analysis */

0 commit comments

Comments
 (0)