diff options
Diffstat (limited to 'extra/libreoffice/fix-nobody-temp-dir.patch')
-rw-r--r-- | extra/libreoffice/fix-nobody-temp-dir.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/libreoffice/fix-nobody-temp-dir.patch b/extra/libreoffice/fix-nobody-temp-dir.patch new file mode 100644 index 000000000..a36465c05 --- /dev/null +++ b/extra/libreoffice/fix-nobody-temp-dir.patch @@ -0,0 +1,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" )); |