fdo#36733: Add useronly read permission, while creating tmpfile.
This commit is contained in:
parent
55da136b3c
commit
83bbcbcf35
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue