VirtualBox

Ignore:
Timestamp:
Aug 10, 2011 2:55:28 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73439
Message:

GuestCtrl: Disable copying directories from guest -> host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r38400 r38403  
    15941594                else
    15951595                {
    1596 #if 0
    1597                     if (   (RT_SUCCESS(ctrlCopyDirExistsOnSource(pContext, pszSource, &fExists))
    1598                             && fExists)
    1599                         || (   RT_SUCCESS(ctrlCopyDirExistsOnSource(pContext, pszSourceRoot, &fExists))
    1600                             && fExists
    1601                             && pszFilter)
    1602                        )
     1596                    if (!pContext->fHostToGuest)
    16031597                    {
    1604                         /* Directory (with filter?). */
    1605                         vrc = ctrlCopyDirToTarget(pContext, pszSource, pszFilter,
    1606                                                   Utf8Dest.c_str(), fFlags, NULL /* Subdir */);
     1598                        RTMsgError("Copying of guest directories to the host is not supported yet!\n");
     1599                        vrc = VERR_NOT_IMPLEMENTED;
    16071600                    }
    1608 #else
    1609                     RTMsgError("Copying of guest directories to the host is not supported yet!\n");
    1610                     vrc = VERR_NOT_IMPLEMENTED;
    1611 #endif
     1601                    else
     1602                    {
     1603                        if (   (RT_SUCCESS(ctrlCopyDirExistsOnSource(pContext, pszSource, &fExists))
     1604                                && fExists)
     1605                            || (   RT_SUCCESS(ctrlCopyDirExistsOnSource(pContext, pszSourceRoot, &fExists))
     1606                                && fExists
     1607                                && pszFilter)
     1608                           )
     1609                        {
     1610                            /* Directory (with filter?). */
     1611                            vrc = ctrlCopyDirToTarget(pContext, pszSource, pszFilter,
     1612                                                      Utf8Dest.c_str(), fFlags, NULL /* Subdir */);
     1613                        }
     1614                    }
    16121615                }
    16131616            }
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