VirtualBox

Ignore:
Timestamp:
Feb 21, 2023 7:49:56 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155965
Message:

Guest Control: Implemented the GuestSession::i_fsQueryInfo() + GuestSession::i_fsCreateTemp() calls. bugref:9783

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r98526 r98665  
    17801780    if (RT_SUCCESS(rc))
    17811781    {
     1782        uint32_t fFlagsRuntime = 0;
     1783
    17821784        if (!(fFlags & ~GSTCTL_QUERYINFO_F_VALID_MASK))
    17831785        {
    1784             uint32_t fFlagsRuntime = 0;
    17851786            if (fFlags & GSTCTL_QUERYINFO_F_ON_LINK)
    17861787                fFlagsRuntime |= RTPATH_F_ON_LINK;
     
    17901791                fFlagsRuntime |= RTPATH_F_NO_SYMLINKS;
    17911792
     1793            if (!RTPATH_F_IS_VALID(fFlagsRuntime, 0))
     1794                rc = VERR_INVALID_PARAMETER;
     1795        }
     1796        else
     1797            rc = VERR_INVALID_PARAMETER;
     1798
     1799        if (RT_FAILURE(rc))
     1800            VGSvcError("Invalid fsqueryinfo flags: %#x (%#x)\n", fFlags, fFlagsRuntime);
     1801
     1802        if (RT_SUCCESS(rc))
     1803        {
    17921804#define CASE_ATTR_ADD_VAL(a_Val) \
    17931805            case GSTCTL##a_Val: enmAttrRuntime = RT##a_Val; break;
     
    18201832
    18211833            rc = RTPathQueryInfoEx(szPath, &objInfoRuntime, enmAttrRuntime, fFlagsRuntime);
    1822         }
    1823         else
    1824         {
    1825             VGSvcError("Invalid stat flags: %#x\n", fFlags);
    1826             rc = VERR_NOT_SUPPORTED;
    18271834        }
    18281835
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