From 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 13 May 2014 14:33:16 +0200 Subject: 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 --- unotools/source/ucbhelper/tempfile.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 4e2cb84d09d4..60536779c79f 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -202,13 +202,7 @@ void CreateTempName_Impl( OUString& rName, bool bKeep, bool bDir = true ) 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 -- cgit