[Libreoffice-commits] .: sfx2/source
Muthu Subramanian
sumuthu at kemper.freedesktop.org
Thu Jul 7 01:46:58 PDT 2011
sfx2/source/doc/docfile.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7589a8d3f6d3cb9f08f39059dedf05b7636cbc0f
Author: Muthu Subramanian <sumuthu at novell.com>
Date: Thu Jul 7 14:34:20 2011 +0530
fdo#36733: Add useronly read permission, while creating tmpfile.
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index d5f3733..5386853 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 );
}
More information about the Libreoffice-commits
mailing list