summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfile.cxx
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@novell.com>2011-07-07 14:34:20 +0530
committerMuthu Subramanian <sumuthu@novell.com>2011-07-07 14:34:20 +0530
commit83bbcbcf3554f90e9e4341b958e887ec5b803d31 (patch)
tree20cc331d85bc66e42a0473629b53c95b4d5cc748 /sfx2/source/doc/docfile.cxx
parent55da136b3c05b102448b3832ca594a9f91f512eb (diff)
fdo#36733: Add useronly read permission, while creating tmpfile.
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r--sfx2/source/doc/docfile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index cc4b50659177..5c5ce9685953 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3336,7 +3336,8 @@ sal_Bool SfxMedium::SetWritableForUserOnly( const ::rtl::OUString& aURL )
osl_File_Attribute_GrpWrite |
osl_File_Attribute_OthWrite |
osl_File_Attribute_ReadOnly);
- nAttributes |= osl_File_Attribute_OwnWrite;
+ nAttributes |= (osl_File_Attribute_OwnWrite |
+ osl_File_Attribute_OwnRead);
bResult = ( osl::File::setAttributes( aURL, nAttributes ) == ::osl::FileBase::E_None );
}