summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-16 10:54:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-16 10:56:59 +0100
commit8dfb36a292892dfbd55198341cc1106aada809db (patch)
tree7a4a672a7f27b1cbb019c2a51a51b1d4eb92cffa /sal
parent2c09909bce08b57fb66a59dcd70d2528b66fa9e1 (diff)
Fallback to osl_getExecutableFile when dlsym("main") fails
e.g. testtool under Linux
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/process_impl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx
index 49d6603612ae..a41bc6889dd8 100644
--- a/sal/osl/unx/process_impl.cxx
+++ b/sal/osl/unx/process_impl.cxx
@@ -142,6 +142,10 @@ oslProcessError SAL_CALL osl_bootstrap_getExecutableFile_Impl (
}
}
+ /* Fallback to ordinary osl_getExecutableFile(). */
+ if (result == osl_Process_E_NotFound)
+ result = osl_getExecutableFile (ppFileURL);
+
return (result);
}