Changeset 97531 in vbox
- Timestamp:
- Nov 14, 2022 2:02:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r97485 r97531 1642 1642 Utf8Str strDstRootAbs = pList->mDstRootAbs; 1643 1643 1644 GuestPath::BuildDestinationPath(strSrcRootAbs, mSession->i_getGuestPathStyle(), 1645 strDstRootAbs, PATH_STYLE_NATIVE); 1644 vrc = GuestPath::BuildDestinationPath(strSrcRootAbs, mSession->i_getGuestPathStyle() /* Source */, 1645 strDstRootAbs, PATH_STYLE_NATIVE /* Dest */); 1646 if (RT_FAILURE(vrc)) 1647 { 1648 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1649 Utf8StrFmt(tr("Building host destination root path \"%s\" failed: %Rrc"), 1650 strDstRootAbs.c_str(), vrc)); 1651 break; 1652 } 1646 1653 1647 1654 bool fCopyIntoExisting; … … 1731 1738 break; 1732 1739 1733 /* Clean up the final host destination root path (for cleaning up mixed path separators). */1734 vrc = GuestPath::Translate(strDstRootAbs,1735 PATH_STYLE_NATIVE /* Source */, PATH_STYLE_NATIVE /* Dest */);1736 if (RT_FAILURE(vrc))1737 {1738 setProgressErrorMsg(VBOX_E_IPRT_ERROR,1739 Utf8StrFmt(tr("Translating host destination root path \"%s\" failed: %Rrc"),1740 strDstRootAbs.c_str(), vrc));1741 break;1742 }1743 1744 1740 /* Make sure the destination root directory exists. */ 1745 1741 if (pList->mSourceSpec.fDryRun == false) … … 1768 1764 strDstAbs += pEntry->strPath; 1769 1765 1770 /* Clean up the final guest source path (for cleaning up mixed path separators). */1766 /* Clean up the final guest source path. */ 1771 1767 vrc = GuestPath::Translate(strSrcAbs, pList->mSourceSpec.enmPathStyle /* Source */, 1772 1768 pList->mSourceSpec.enmPathStyle /* Dest */); … … 1779 1775 } 1780 1776 1781 /* Translate the final host destination path. */1777 /* Clean up the final host desitnation path. */ 1782 1778 vrc = GuestPath::Translate(strDstAbs, PATH_STYLE_NATIVE /* Source */, PATH_STYLE_NATIVE /* Dest */); 1783 1779 if (RT_FAILURE(vrc)) … … 2105 2101 Utf8Str strDstRootAbs = pList->mDstRootAbs; 2106 2102 2107 /* Translate the destination path to a path compatible with the guest. 2108 * Note: This needs to be done *before* GuestPath::BuildDestinationPath() below! */ 2109 vrc = GuestPath::Translate(strDstRootAbs, mSession->i_getGuestPathStyle() /* Source */, 2110 mSession->i_getGuestPathStyle() /* Dest */); 2111 2112 GuestPath::BuildDestinationPath(strSrcRootAbs, PATH_STYLE_NATIVE, 2113 strDstRootAbs, mSession->i_getGuestPathStyle()); 2114 2115 2103 vrc = GuestPath::BuildDestinationPath(strSrcRootAbs, PATH_STYLE_NATIVE /* Source */, 2104 strDstRootAbs, mSession->i_getGuestPathStyle() /* Dest */); 2116 2105 if (RT_FAILURE(vrc)) 2117 2106 { 2118 2107 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2119 Utf8StrFmt(tr(" Translating guest destinationpath \"%s\" failed: %Rrc"),2108 Utf8StrFmt(tr("Building guest destination root path \"%s\" failed: %Rrc"), 2120 2109 strDstRootAbs.c_str(), vrc)); 2121 2110 break; … … 2221 2210 break; 2222 2211 2223 /* Clean up the final guest destination root path (for cleaning up mixed path separators). */2224 vrc = GuestPath::Translate(strDstRootAbs,2225 mSession->i_getGuestPathStyle() /* Source */, mSession->i_getGuestPathStyle() /* Dest */);2226 if (RT_FAILURE(vrc))2227 {2228 setProgressErrorMsg(VBOX_E_IPRT_ERROR,2229 Utf8StrFmt(tr("Translating guest destination root path \"%s\" failed: %Rrc"),2230 strDstRootAbs.c_str(), vrc));2231 break;2232 }2233 2234 2212 /* Make sure the destination root directory exists. */ 2235 2213 if (pList->mSourceSpec.fDryRun == false) … … 2258 2236 strDstAbs += pEntry->strPath; 2259 2237 2260 /* Clean up the final host source path (for cleaning up mixed path separators). */2238 /* Clean up the final host source path. */ 2261 2239 vrc = GuestPath::Translate(strSrcAbs, PATH_STYLE_NATIVE /* Source */, PATH_STYLE_NATIVE /* Dest */); 2262 2240 if (RT_FAILURE(vrc)) … … 2268 2246 } 2269 2247 2270 /* Translatethe final guest destination path. */2248 /* Clean up the final guest destination path. */ 2271 2249 vrc = GuestPath::Translate(strDstAbs, 2272 2250 mSession->i_getGuestPathStyle() /* Source */, mSession->i_getGuestPathStyle() /* Dest */);
Note:
See TracChangeset
for help on using the changeset viewer.