Changeset 28347 in vbox
- Timestamp:
- Apr 15, 2010 7:49:38 AM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r28297 r28347 678 678 rc = RTProcCreateEx(pData->pszCmd, pData->papszArgs, hEnv, pData->uFlags, 679 679 phStdIn, phStdOut, phStdErr, 680 /*pszUsername, pszPassword,*/ NULL, NULL, 680 strlen(pData->pszUser) ? pData->pszUser : NULL, 681 strlen(pData->pszUser) && strlen(pData->pszPassword) ? pData->pszPassword : NULL, 681 682 &hProcess); 682 683 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r28248 r28347 249 249 Bstr(Utf8UserName), Bstr(Utf8Password), uTimeoutMS, 250 250 &uPID, progress.asOutParam())); 251 if (verbose) RTPrintf("Process \"%s\"(PID: %u) started.\n", Utf8Cmd.raw(), uPID);251 if (verbose) RTPrintf("Process '%s' (PID: %u) started.\n", Utf8Cmd.raw(), uPID); 252 252 if (waitForOutput) 253 253 { -
trunk/src/VBox/Main/GuestImpl.cpp
r28307 r28347 613 613 } 614 614 615 Utf8Str Utf8StdIn(aStdIn); 616 Utf8Str Utf8StdOut(aStdOut); 617 Utf8Str Utf8StdErr(aStdErr); 618 Utf8Str Utf8UserName(aUserName); 619 Utf8Str Utf8Password(aPassword); 615 620 if (RT_SUCCESS(vrc)) 616 621 { … … 637 642 break; 638 643 } 639 644 640 645 if (RT_SUCCESS(vrc)) 641 { 642 Utf8Str Utf8StdIn(aStdIn); 643 Utf8Str Utf8StdOut(aStdOut); 644 Utf8Str Utf8StdErr(aStdErr); 645 Utf8Str Utf8UserName(aUserName); 646 Utf8Str Utf8Password(aPassword); 647 646 { 648 647 PHOSTEXECCALLBACKDATA pData = (HOSTEXECCALLBACKDATA*)RTMemAlloc(sizeof(HOSTEXECCALLBACKDATA)); 649 648 AssertPtr(pData); … … 737 736 { 738 737 rc = setError(VBOX_E_IPRT_ERROR, 739 tr("The file \"%s\"was not found on guest"), Utf8Command.raw());738 tr("The file '%s' was not found on guest"), Utf8Command.raw()); 740 739 } 741 740 else if (vrc == VERR_BAD_EXE_FORMAT) 742 741 { 743 742 rc = setError(VBOX_E_IPRT_ERROR, 744 tr("The file \"%s\" is not an executable format on guest"), Utf8Command.raw()); 743 tr("The file '%s' is not an executable format on guest"), Utf8Command.raw()); 744 } 745 else if (vrc == VERR_LOGON_FAILURE) 746 { 747 rc = setError(VBOX_E_IPRT_ERROR, 748 tr("The specified user '%s' was not able to logon on guest"), Utf8UserName.raw()); 745 749 } 746 750 else if (vrc == VERR_TIMEOUT) … … 752 756 { 753 757 rc = setError(E_UNEXPECTED, 754 tr("The service call failed with theerror %Rrc"), vrc);758 tr("The service call failed with error %Rrc"), vrc); 755 759 } 756 760 }
Note:
See TracChangeset
for help on using the changeset viewer.