summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-13 14:33:16 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2014-08-20 09:40:50 +0200
commit6f4c230912801f7cbddf27fce263219975dacdf8 (patch)
treef3ca43bf3e588d44dc5ddcc20946298b032a7230 /unotools/source
parentfcb3bae5d9f4c2a9eb1c3e6c96f013ce5193cffa (diff)
Related fdo#60338: Create missing temp file dir with user's original umask
For one, that is consistent with how ensuredir (in the same .cxx) has always worked, and for another saves us from trouble with umask, cf. 034d4c111976f337877e5954c6cc95ed9f90a343 "Related fdo#60338: Setting umask for osl::Directory::open is useless." Change-Id: Ic3fb5bb29ca3031d257067a514cb9f5bccfbfe4f (cherry picked from commit 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42)
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 451a4786f635..074c21de7df9 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -192,13 +192,7 @@ void CreateTempName_Impl( String& rName, sal_Bool bKeep, sal_Bool bDir = sal_Tru
if ( bDir )
{
-#ifdef UNX /* RW permission for the user only! */
- mode_t old_mode = umask(077);
-#endif
FileBase::RC err = Directory::create( aTmp );
-#ifdef UNX
- umask(old_mode);
-#endif
if ( err == FileBase::E_None )
{
// !bKeep: only for creating a name, not a file or directory