VirtualBox

Ignore:
Timestamp:
Aug 10, 2016 8:45:33 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109934
Message:

DHCP: DIFx killable window seems to have to lost when we enabled hardening (will do same for NAT in a bit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.cpp

    r63267 r63301  
    247247 * @param   argc    Argument count.
    248248 * @param   argv    Argument vector.
     249 *
     250 * @todo r=bird: The --help and --version options shall not return a
     251 *               non-zero exit code.  So, this method need to grow some
     252 *               complexity.  I'm to blame for that blunder :/
    249253 */
    250254int VBoxNetBaseService::parseArgs(int argc, char **argv)
     
    295299                {
    296300                    RTStrmPrintf(g_pStdErr, "Invalid trunk type '%s'\n", Val.psz);
    297                     return 1;
     301                    return RTEXITCODE_SYNTAX;
    298302                }
    299303                break;
     
    317321            case 'V': // --version (missed)
    318322                RTPrintf("%sr%u\n", RTBldCfgVersion(), RTBldCfgRevision());
    319                 return 1;
     323                return 1; /** @todo this exit code is wrong, of course. :/ */
    320324
    321325            case 'M': // --need-main
     
    338342                    RTPrintf("    -%c, %s\n", m->m_vecOptionDefs[i]->iShort, m->m_vecOptionDefs[i]->pszLong);
    339343                usage(); /* to print Service Specific usage */
    340                 return 1;
     344                return 1; /** @todo this exit code is wrong, of course. :/ */
    341345
    342346            default:
     
    345349                if (RT_FAILURE(rc1))
    346350                {
    347                     rc = RTGetOptPrintError(rc, &Val);
     351                    RTEXITCODE rcExit = RTGetOptPrintError(rc, &Val);
    348352                    RTPrintf("Use --help for more information.\n");
    349                     return rc;
     353                    return rcExit;
    350354                }
    351355                break;
     
    355359
    356360    RTMemFree(paOptionArray);
    357     return rc;
     361    return RTEXITCODE_SUCCESS;
    358362}
    359363
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