VirtualBox

Changeset 92135 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 28, 2021 11:55:06 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147955
Message:

Main/Console: Fix long standing incorrect error code check in code path which is not enabled by default (VBOX_WITH_NETFLT not defined on Linux).

File:
1 edited

Legend:

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

    r92133 r92135  
    56105610                    switch (hrc)
    56115611                    {
    5612                         case VERR_ACCESS_DENIED:
     5612                        case E_ACCESSDENIED:
    56135613                            return VMSetError(VMR3GetVM(mpUVM), VERR_HOSTIF_INIT_FAILED, RT_SRC_POS,  N_(
    56145614                                            "Failed to open '/dev/net/tun' for read/write access. Please check the "
     
    56595659
    56605660# if defined(RT_OS_DARWIN)
    5661                 /* The name is on the form 'ifX: long name', chop it off at the colon. */
     5661                /* The name is in the format 'ifX: long name', chop it off at the colon. */
    56625662                char szTrunk[INTNET_MAX_TRUNK_NAME];
    56635663                RTStrCopy(szTrunk, sizeof(szTrunk), pszBridgedIfName);
     
    56825682
    56835683# elif defined(RT_OS_SOLARIS)
    5684                 /* The name is on the form format 'ifX[:1] - long name, chop it off at space. */
     5684                /* The name is in the format 'ifX[:1] - long name, chop it off at space. */
    56855685                char szTrunk[256];
    56865686                strlcpy(szTrunk, pszBridgedIfName, sizeof(szTrunk));
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