VirtualBox

Changeset 23064 in vbox


Ignore:
Timestamp:
Sep 16, 2009 12:07:11 PM (15 years ago)
Author:
vboxsync
Message:

VBoxNetAdpCtl.cpp: use execve and a null environment in executeIfconfig.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/apps/adpctl/VBoxNetAdpCtl.cpp

    r23063 r23064  
    8686        NULL  /* terminator */
    8787    };
     88    char * const envp[] = { (char*)"LC_ALL=C", NULL };
    8889    int rc = EXIT_SUCCESS;
    8990    pid_t childPid = fork();
     
    9596            break;
    9697        case 0: /* Child process. */
    97             /** @todo use execve like below? */
    98             if (execv(VBOXADPCTL_IFCONFIG_PATH, (char * const*)argv) == -1)
     98            if (execve(VBOXADPCTL_IFCONFIG_PATH, (char * const*)argv, envp) == -1)
    9999                rc = EXIT_FAILURE;
    100100            break;
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