Changeset 84924 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Jun 24, 2020 9:40:54 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138796
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/TestExecServ/TestExecService.cpp
r84923 r84924 2790 2790 if (RT_SUCCESS(rc)) 2791 2791 { 2792 char *pszExecResolved = RTPathRealDup(pszExecName); 2793 if (pszExecResolved) 2792 char szPathResolved[RTPATH_MAX + 1]; 2793 rc = RTPathReal(pszExecName, szPathResolved, sizeof(szPathResolved)); 2794 if (RT_SUCCESS(rc)) 2794 2795 { 2795 2796 /* … … 2798 2799 if (g_fDisplayOutput) 2799 2800 { 2800 RTPrintf("txs: Executing \"%s\" -> \"%s\": ", pszExecName, pszExecResolved);2801 RTPrintf("txs: Executing \"%s\" -> \"%s\": ", pszExecName, szPathResolved); 2801 2802 for (uint32_t i = 0; i < cArgs; i++) 2802 2803 RTPrintf(" \"%s\"", papszArgs[i]); … … 2804 2805 } 2805 2806 2806 rc = RTProcCreateEx( pszExecResolved, papszArgs, pTxsExec->hEnv, 0 /*fFlags*/,2807 rc = RTProcCreateEx(szPathResolved, papszArgs, pTxsExec->hEnv, 0 /*fFlags*/, 2807 2808 pTxsExec->StdIn.phChild, pTxsExec->StdOut.phChild, pTxsExec->StdErr.phChild, 2808 2809 *pszUsername ? pszUsername : NULL, NULL, NULL, … … 2831 2832 rc = txsDoExecHlp2(pTxsExec); 2832 2833 } 2833 else2834 rc = txsReplyFailure(pPktHdr, "FAILED ", "Executing process \"%s\" failed with %Rrc",2835 pszExecResolved, rc);2836 2837 RTStrFree(pszExecResolved);2838 2834 } 2839 else 2840 rc = VERR_NO_MEMORY; 2835 2836 if (RT_FAILURE(rc)) 2837 rc = txsReplyFailure(pPktHdr, "FAILED ", "Executing process \"%s\" failed with %Rrc", 2838 pszExecName, rc); 2841 2839 } 2842 2840 else
Note:
See TracChangeset
for help on using the changeset viewer.