summaryrefslogtreecommitdiff
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
commit7589a8d3f6d3cb9f08f39059dedf05b7636cbc0f (patch)
treebb01b17a59e241281f355fc20ad9fcf0a0f8c46e
parente2e69bc270f39182400cb9f12f121eb5aec7da3a (diff)
fdo#36733: Add useronly read permission, while creating tmpfile.
-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 d5f3733400..5386853be5 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 );
}