unotools/source/ucbhelper/tempfile.cxx | 6 ------ 1 file changed, 6 deletions(-)
New commits: commit 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue May 13 14:33:16 2014 +0200 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 diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 4e2cb84..6053677 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits