VirtualBox

Changeset 99011 in vbox


Ignore:
Timestamp:
Mar 17, 2023 8:35:35 AM (23 months ago)
Author:
vboxsync
Message:

Guest Control/Main: Removed unused ACL parameters from GuestFsObjData::FromGuestFsObjInfo() and return vrc instead of VINF_SUCCESS. bugref:9783

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h

    r98816 r99011  
    848848#ifdef VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS
    849849    int FromGuestDirEntryEx(PCGSTCTLDIRENTRYEX pDirEntryEx, const Utf8Str &strUser = "", const Utf8Str &strGroups = "");
    850     int FromGuestFsObjInfo(PCGSTCTLFSOBJINFO pFsObjInfo, const Utf8Str &strUser = "", const Utf8Str &strGroups = "",
    851                            const void *pvACL = NULL, size_t cbACL = 0);
     850    int FromGuestFsObjInfo(PCGSTCTLFSOBJINFO pFsObjInfo, const Utf8Str &strUser = "", const Utf8Str &strGroups = "");
    852851#endif
    853852
  • trunk/src/VBox/Main/src-client/GuestCtrlPrivate.cpp

    r98816 r99011  
    157157 *                              On Windows there can be multiple groups assigned. The groups are separated with ";"
    158158 *                              The first group found is always the primary group.
    159  * @param   pvACL               ACL data associated with the object.
    160  * @param   cbACL               Size of ACL data (in bytes) associated with the object.
    161159 */
    162160int GuestFsObjData::FromGuestFsObjInfo(PCGSTCTLFSOBJINFO pFsObjInfo,
    163                                        const Utf8Str &strUser /* = "" */, const Utf8Str &strGroups /* = "" */, const void *pvACL /* = NULL */, size_t cbACL /* = 0 */)
    164 {
    165     RT_NOREF(pvACL, cbACL);
    166 
    167     int vrc;
     161                                       const Utf8Str &strUser /* = "" */, const Utf8Str &strGroups /* = "" */)
     162{
     163    int vrc = VINF_SUCCESS;
    168164
    169165    mType = GuestBase::fileModeToFsObjType(pFsObjInfo->Attr.fMode);
     
    243239    mACL              = ""; /** @todo Implement ACL handling. */
    244240
    245     return VINF_SUCCESS;
     241    return vrc;
    246242}
    247243#endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
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