summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-13 14:29:56 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2014-08-20 09:40:49 +0200
commitfcb3bae5d9f4c2a9eb1c3e6c96f013ce5193cffa (patch)
tree29dd5b5bb1c411b2e15faf5a7616a299ea04f4d2 /unotools/source
parent6aa4a5a85a1ccc1714a76f4c3c3f008ec3b975e3 (diff)
Related fdo#60338: Setting umask for osl::Directory::open is useless
Maybe 39c58e416252571a04b8ebbb56c9fa012b117993 "INTEGRATION: CWS olefix: #i46469# use correct umask on unix" had intended to put it around the osl::Directory::create call instead, but given the trouble of calling umask(3) in a MT program at all, it is probably better to keep creating any missing directories with the user's original umask anyway. (cherry picked from commit 034d4c111976f337877e5954c6cc95ed9f90a343) Conflicts: unotools/source/ucbhelper/tempfile.cxx Change-Id: Idfddfdab05373a3c395daba635fddcc054f3f215
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 798f61be5816..451a4786f635 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -88,14 +88,7 @@ sal_Bool ensuredir( const OUString& rUnqPath )
// HACK: create directory on a mount point with nobrowse option
// returns ENOSYS in any case !!
osl::Directory aDirectory( aPath );
-#ifdef UNX
-/* RW permission for the user only! */
- mode_t old_mode = umask(077);
-#endif
osl::FileBase::RC nError = aDirectory.open();
-#ifdef UNX
-umask(old_mode);
-#endif
aDirectory.close();
if( nError == osl::File::E_None )
return sal_True;