VirtualBox

Ignore:
Timestamp:
Feb 28, 2019 11:13:24 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129095
Message:

Guest Control/Main: Respect dry run in GuestSessionTaskCopy[From|To]::Run().

File:
1 edited

Legend:

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

    r77499 r77500  
    15631563
    15641564        /* Create the root directory. */
    1565         if (pList->mSourceSpec.enmType == FsObjType_Directory)
     1565        if (   pList->mSourceSpec.enmType == FsObjType_Directory
     1566            && pList->mSourceSpec.fDryRun == false)
    15661567        {
    15671568            rc = directoryCreateOnHost(pList->mDstRootAbs.c_str(), fDirMode, fDirCreate, fCopyIntoExisting);
     
    15941595                    LogFlowFunc(("Directory '%s': %s -> %s\n", pEntry->strPath.c_str(), strSrcAbs.c_str(), strDstAbs.c_str()));
    15951596                    if (!pList->mSourceSpec.fDryRun)
    1596                     {
    15971597                        rc = directoryCreateOnHost(strDstAbs.c_str(), fDirMode, fDirCreate, fCopyIntoExisting);
    1598                         if (RT_FAILURE(rc))
    1599                             break;
    1600                     }
    16011598                    break;
    16021599
     
    18071804            fFollowSymlinks   = pList->mSourceSpec.Type.Dir.fFollowSymlinks;
    18081805
    1809             rc = directoryCreateOnGuest(pList->mDstRootAbs.c_str(), DirectoryCreateFlag_None, fDirMode,
    1810                                         pList->mSourceSpec.Type.Dir.fFollowSymlinks, fCopyIntoExisting);
    1811             if (RT_FAILURE(rc))
    1812                 break;
     1806            if (pList->mSourceSpec.fDryRun == false)
     1807            {
     1808                rc = directoryCreateOnGuest(pList->mDstRootAbs.c_str(), DirectoryCreateFlag_None, fDirMode,
     1809                                            fFollowSymlinks, fCopyIntoExisting);
     1810                if (RT_FAILURE(rc))
     1811                    break;
     1812            }
    18131813        }
    18141814        else if (pList->mSourceSpec.enmType == FsObjType_File)
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