diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 14:33:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 14:33:16 +0200 |
commit | 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42 (patch) | |
tree | 6946c35fd8486b5fe6c9abe56882a1e67e24bf12 | |
parent | 034d4c111976f337877e5954c6cc95ed9f90a343 (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
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 6 |
1 files changed, 0 insertions, 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 |