Changeset 35224 in vbox for trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp
- Timestamp:
- Dec 17, 2010 1:11:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp
r35219 r35224 1382 1382 if (RT_SUCCESS(rc)) 1383 1383 { 1384 iSuArg = cSuArgs - 8;1385 papszArgs[cSuArgs - 8] = szXterm;1386 papszArgs[cSuArgs - 7] = "-T";1387 papszArgs[cSuArgs - 6] = papszArgs[cSuArgs - 1] = iCmd == CMD_INSTALL1384 iSuArg = cSuArgs - 9; 1385 papszArgs[cSuArgs - 9] = szXterm; 1386 papszArgs[cSuArgs - 8] = "-T"; 1387 papszArgs[cSuArgs - 7] = iCmd == CMD_INSTALL 1388 1388 ? "VirtualBox extension pack installer - su" 1389 1389 : iCmd == CMD_UNINSTALL 1390 1390 ? "VirtualBox extension pack uninstaller - su" 1391 1391 : "VirtualBox extension pack maintainer - su"; 1392 papszArgs[cSuArgs - 5] = "-e"; 1393 papszArgs[cSuArgs - 4] = szExecTool; 1394 papszArgs[cSuArgs - 3] = "-c"; 1395 papszArgs[cSuArgs - 2] = pszCmdLine; 1396 papszArgs[cSuArgs - 1] = "-"; 1392 papszArgs[cSuArgs - 6] = "-e"; 1393 papszArgs[cSuArgs - 5] = szExecTool; 1394 papszArgs[cSuArgs - 4] = "-"; 1395 papszArgs[cSuArgs - 3] = "root"; 1396 papszArgs[cSuArgs - 2] = "-c"; 1397 papszArgs[cSuArgs - 1] = pszCmdLine; 1397 1398 papszArgs[cSuArgs] = NULL; 1398 1399 } … … 1495 1496 * change the order here. 1496 1497 */ 1497 int const cSuArgs = 1 0;1498 int const cSuArgs = 12; 1498 1499 int cArgs = argc + 5 + 1; 1499 1500 char const **papszArgs = (char const **)RTMemTmpAllocZ((cSuArgs + cArgs + 1) * sizeof(const char *));
Note:
See TracChangeset
for help on using the changeset viewer.