Changeset 33422 in vbox
- Timestamp:
- Oct 25, 2010 1:33:07 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r33415 r33422 1035 1035 * @return IPRT status code. 1036 1036 * @param pszFileName File name (full path) of this process. 1037 * @param pszTool Tool name (e.g. "vbox_cat") to use.1038 1037 * @param papszArgs Original argv command line from the host. 1039 1038 * @param ppapszArgv Pointer to a pointer with the new argv command line. 1040 1039 * Needs to be freed with RTGetOptArgvFree. 1041 1040 */ 1042 int VBoxServiceControlExecPrepareToolboxArgv(const char *pszFileName, const char *pszTool,1041 int VBoxServiceControlExecPrepareToolboxArgv(const char *pszFileName, 1043 1042 const char * const *papszArgs, char ***ppapszArgv) 1044 1043 { 1045 1044 AssertPtrReturn(pszFileName, VERR_INVALID_PARAMETER); 1046 AssertPtrReturn(pszTool, VERR_INVALID_PARAMETER);1047 1045 AssertPtrReturn(papszArgs, VERR_INVALID_PARAMETER); 1048 1046 AssertPtrReturn(ppapszArgv, VERR_INVALID_PARAMETER); … … 1058 1056 * tool name to new process' command line. 1059 1057 */ 1060 if (RTStrAPrintf(&pszNewArgs, "%s %s %s", pszFileName, pszTool, pszArgs))1058 if (RTStrAPrintf(&pszNewArgs, "%s %s", pszFileName, pszArgs)) 1061 1059 { 1062 1060 int iNumArgsIgnored; … … 1136 1134 /* We want to use the internal toolbox. */ 1137 1135 pszCmdTool = RTStrDup(szVBoxService); 1138 rc = VBoxServiceControlExecPrepareToolboxArgv(pszCmdTool, pszExec, 1139 papszArgs, &papszArgsTool); 1136 rc = VBoxServiceControlExecPrepareToolboxArgv(pszCmdTool, papszArgs, &papszArgsTool); 1140 1137 } 1141 1138 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp
r33277 r33422 205 205 || !strcmp(argv[0], "vbox_cat")) 206 206 { 207 rc = VBoxServiceToolboxCat(argc - 1, &argv[1]);207 rc = VBoxServiceToolboxCat(argc, argv); 208 208 } 209 209 }
Note:
See TracChangeset
for help on using the changeset viewer.