diff options
-rw-r--r-- | sal/osl/unx/process.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx index 7355ac97a57d..8030664d10e1 100644 --- a/sal/osl/unx/process.cxx +++ b/sal/osl/unx/process.cxx @@ -472,7 +472,15 @@ oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO( char szWorkDir[PATH_MAX] = ""; if ( ustrWorkDir != 0 && ustrWorkDir->length ) { - FileURLToPath( szWorkDir, PATH_MAX, ustrWorkDir ); + oslFileError e = FileURLToPath( szWorkDir, PATH_MAX, ustrWorkDir ); + if (e != osl_File_E_None) + { + SAL_INFO( + "sal.osl", + "FileURLToPath(" << rtl::OUString::unacquired(&ustrWorkDir) + << ") failed with " << e); + return osl_Process_E_Unknown; + } pszWorkDir = szWorkDir; } |