diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-07-11 12:05:47 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-07-11 12:07:01 +0100 |
commit | 5dd688864821845afb48d093a90be2df9b4dafc5 (patch) | |
tree | 57bf5bc414c8bfa235445861a3e384d48406758e | |
parent | b44017797dc8060b497a521e7c42a6a6e81bd32f (diff) |
fdo#36733: Add useronly read permission, while creating tmpfile.
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 6c096706e9..e6e9620634 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -3330,11 +3330,12 @@ sal_Bool SfxMedium::SetWritableForUserOnly( const ::rtl::OUString& aURL ) { sal_uInt64 nAttributes = aFileStatus.getAttributes(); - nAttributes &= ~(Attribute_OwnWrite | - Attribute_GrpWrite | - Attribute_OthWrite | - Attribute_ReadOnly); - nAttributes |= Attribute_OwnWrite; + nAttributes &= ~(osl_File_Attribute_OwnWrite | + osl_File_Attribute_GrpWrite | + osl_File_Attribute_OthWrite | + osl_File_Attribute_ReadOnly); + nAttributes |= (osl_File_Attribute_OwnWrite | + osl_File_Attribute_OwnRead); bResult = ( osl::File::setAttributes( aURL, nAttributes ) == ::osl::FileBase::E_None ); } |