VirtualBox

Changeset 97541 in vbox


Ignore:
Timestamp:
Nov 15, 2022 6:17:13 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154571
Message:

Guest Control/Main: Some more fixes. bugref:10286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r97540 r97541  
    18541854            }
    18551855
    1856             /* Translate the final host destination file path. */
    1857             vrc = GuestPath::Translate(strDstRootAbs,
    1858                                        mSession->i_getGuestPathStyle() /* Dest */, PATH_STYLE_NATIVE /* Source */);
    1859             if (RT_FAILURE(vrc))
    1860             {
    1861                 setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1862                                     Utf8StrFmt(tr("Translating host destination path \"%s\" failed: %Rrc"),
    1863                                                strDstRootAbs.c_str(), vrc));
    1864                 break;
    1865             }
    1866 
    1867             if (   RT_SUCCESS(vrc)
    1868                 && !pList->mSourceSpec.fDryRun)
    1869                 vrc = fileCopyFromGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags);
     1856            if (RT_SUCCESS(vrc))
     1857            {
     1858                /* Translate the final host destination file path. */
     1859                vrc = GuestPath::Translate(strDstRootAbs,
     1860                                           mSession->i_getGuestPathStyle() /* Dest */, PATH_STYLE_NATIVE /* Source */);
     1861                if (RT_FAILURE(vrc))
     1862                {
     1863                    setProgressErrorMsg(VBOX_E_IPRT_ERROR,
     1864                                        Utf8StrFmt(tr("Translating host destination path \"%s\" failed: %Rrc"),
     1865                                                   strDstRootAbs.c_str(), vrc));
     1866                    break;
     1867                }
     1868
     1869                if (!pList->mSourceSpec.fDryRun)
     1870                    vrc = fileCopyFromGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags);
     1871            }
    18701872        }
    18711873        else
     
    23422344            }
    23432345
    2344             /* Translate the final guest destination file path. */
    2345             vrc = GuestPath::Translate(strDstRootAbs,
    2346                                        PATH_STYLE_NATIVE /* Source */,  mSession->i_getGuestPathStyle() /* Dest */);
    2347             if (RT_FAILURE(vrc))
    2348             {
    2349                 setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    2350                                     Utf8StrFmt(tr("Translating guest destination path \"%s\" failed: %Rrc"),
    2351                                                strDstRootAbs.c_str(), vrc));
    2352                 break;
    2353             }
    2354 
    2355             if (   RT_SUCCESS(vrc)
    2356                 && !pList->mSourceSpec.fDryRun)
    2357                 vrc = fileCopyToGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags);
     2346            if (RT_SUCCESS(vrc))
     2347            {
     2348                /* Translate the final guest destination file path. */
     2349                vrc = GuestPath::Translate(strDstRootAbs,
     2350                                           PATH_STYLE_NATIVE /* Source */,  mSession->i_getGuestPathStyle() /* Dest */);
     2351                if (RT_FAILURE(vrc))
     2352                {
     2353                    setProgressErrorMsg(VBOX_E_IPRT_ERROR,
     2354                                        Utf8StrFmt(tr("Translating guest destination path \"%s\" failed: %Rrc"),
     2355                                                   strDstRootAbs.c_str(), vrc));
     2356                    break;
     2357                }
     2358
     2359                if (!pList->mSourceSpec.fDryRun)
     2360                    vrc = fileCopyToGuest(strSrcRootAbs, strDstRootAbs, pList->mSourceSpec.fFileCopyFlags);
     2361            }
    23582362        }
    23592363        else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette