summaryrefslogtreecommitdiff
path: root/extra/libreoffice/fix-nobody-temp-dir.patch
blob: a36465c055597b528e411b9b10f53fbcb5127152 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- bridges/source/cpp_uno/shared/vtablefactory.cxx.orig	2011-11-05 19:38:58.812005183 +0100
+++ bridges/source/cpp_uno/shared/vtablefactory.cxx	2011-11-05 19:40:01.654548478 +0100
@@ -263,7 +263,7 @@
 
     for (int i = strDirectory.getLength() == 0 ? 1 : 0; i < 2; ++i)
     {
-        if (!strDirectory.getLength())
+        if (strDirectory.getLength() < 2)
             strDirectory = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/tmp" ));
 
         strDirectory += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/.execoooXXXXXX" ));