summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-05-31 10:45:56 +0200
committerJan Holesovsky <kendy@suse.cz>2011-05-31 10:45:56 +0200
commite6d8b9c96ff6803bd13df453d454c9f9d9ef061b (patch)
treee039fcb6ee2629eea612af5efdff16ca03a9c4c5
parentc9189d8d0ef6ae9d39011021fafc40efc7e48be9 (diff)
parentc7154038c8bca0b336d66e57f4e136eb406c4e9b (diff)
Merge commit 'libreoffice-3.4.0.2'
Conflicts: sal/osl/unx/diagnose.c
-rw-r--r--sal/osl/unx/diagnose.c2
-rw-r--r--sal/qa/osl/security/osl_Security.cxx5
2 files changed, 5 insertions, 2 deletions
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c
index 728f4f6e2..0f89ddd06 100644
--- a/sal/osl/unx/diagnose.c
+++ b/sal/osl/unx/diagnose.c
@@ -255,7 +255,7 @@ sal_Bool SAL_CALL osl_assertFailedLine (
/* output message buffer */
OSL_DIAGNOSE_OUTPUTMESSAGE(f, szMessage);
- /* output backtrace */
+ /* should we output backtrace? */
char const * envBacktrace = getenv( "SAL_DIAGNOSE_BACKTRACE" );
if( envBacktrace != NULL && *envBacktrace != '\0' )
osl_diagnose_backtrace_Impl(f);
diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx
index 8bbb21aa2..fd4c5b7a7 100644
--- a/sal/qa/osl/security/osl_Security.cxx
+++ b/sal/qa/osl/security/osl_Security.cxx
@@ -368,8 +368,11 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *,
strUserName = ::rtl::OUString::createFromAscii( pw->pw_name );
/// get home directory;
+ char *pw_dir = pw->pw_dir;
+ if( getenv( "FAKEROOTKEY" ) )
+ pw_dir = getenv("HOME");
CPPUNIT_ASSERT_MESSAGE( "#Convert from system path to URL failed.",
- ::osl::File::E_None == ::osl::File::getFileURLFromSystemPath( ::rtl::OUString::createFromAscii( pw->pw_dir ), strHomeDirectory ) );
+ ::osl::File::E_None == ::osl::File::getFileURLFromSystemPath( ::rtl::OUString::createFromAscii( pw_dir ), strHomeDirectory ) );
/// get config directory;
strConfigDirectory = strHomeDirectory.copy(0);