VirtualBox

Changeset 71787 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 9, 2018 4:03:51 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Added validation for FileCopyFlags in GuestSession::fileCopyFromGuest() and GuestSession::fileCopyToGuest().

File:
1 edited

Legend:

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

    r71785 r71787  
    26062606
    26072607    if (fFlags)
    2608         return setError(E_NOTIMPL, tr("Flag(s) not yet implemented"));
     2608    {
     2609        if (   !(fFlags & FileCopyFlag_NoReplace)
     2610            && !(fFlags & FileCopyFlag_FollowLinks)
     2611            && !(fFlags & FileCopyFlag_Update))
     2612        {
     2613            return setError(E_NOTIMPL, tr("Invalid / not (yet) implemented flag(s) specified"));
     2614        }
     2615    }
    26092616
    26102617    HRESULT hrc = i_isReadyExternal();
     
    26862693
    26872694    if (fFlags)
    2688         return setError(E_NOTIMPL, tr("Flag(s) not yet implemented"));
     2695    {
     2696        if (   !(fFlags & FileCopyFlag_NoReplace)
     2697            && !(fFlags & FileCopyFlag_FollowLinks)
     2698            && !(fFlags & FileCopyFlag_Update))
     2699        {
     2700            return setError(E_NOTIMPL, tr("Invalid / not (yet) implemented flag(s) specified"));
     2701        }
     2702    }
    26892703
    26902704    HRESULT hrc = i_isReadyExternal();
Note: See TracChangeset for help on using the changeset viewer.

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