VirtualBox

Changeset 33422 in vbox


Ignore:
Timestamp:
Oct 25, 2010 1:33:07 PM (14 years ago)
Author:
vboxsync
Message:

GuestCopy/VBoxService: Bugfixes.

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

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

    r33415 r33422  
    10351035 * @return IPRT status code.
    10361036 * @param  pszFileName      File name (full path) of this process.
    1037  * @param  pszTool          Tool name (e.g. "vbox_cat") to use.
    10381037 * @param  papszArgs        Original argv command line from the host.
    10391038 * @param  ppapszArgv       Pointer to a pointer with the new argv command line.
    10401039 *                          Needs to be freed with RTGetOptArgvFree.
    10411040 */
    1042 int VBoxServiceControlExecPrepareToolboxArgv(const char *pszFileName, const char *pszTool,
     1041int VBoxServiceControlExecPrepareToolboxArgv(const char *pszFileName,
    10431042                                             const char * const *papszArgs, char ***ppapszArgv)
    10441043{
    10451044    AssertPtrReturn(pszFileName, VERR_INVALID_PARAMETER);
    1046     AssertPtrReturn(pszTool, VERR_INVALID_PARAMETER);
    10471045    AssertPtrReturn(papszArgs, VERR_INVALID_PARAMETER);
    10481046    AssertPtrReturn(ppapszArgv, VERR_INVALID_PARAMETER);
     
    10581056         * tool name to new process' command line.
    10591057         */
    1060         if (RTStrAPrintf(&pszNewArgs, "%s %s %s", pszFileName, pszTool, pszArgs))
     1058        if (RTStrAPrintf(&pszNewArgs, "%s %s", pszFileName, pszArgs))
    10611059        {
    10621060            int iNumArgsIgnored;
     
    11361134            /* We want to use the internal toolbox. */
    11371135            pszCmdTool = RTStrDup(szVBoxService);
    1138             rc = VBoxServiceControlExecPrepareToolboxArgv(pszCmdTool, pszExec,
    1139                                                           papszArgs, &papszArgsTool);
     1136            rc = VBoxServiceControlExecPrepareToolboxArgv(pszCmdTool, papszArgs, &papszArgsTool);
    11401137        }
    11411138
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp

    r33277 r33422  
    205205            || !strcmp(argv[0], "vbox_cat"))
    206206        {
    207             rc = VBoxServiceToolboxCat(argc - 1, &argv[1]);
     207            rc = VBoxServiceToolboxCat(argc, argv);
    208208        }
    209209    }
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