safer permissions on the user dir i#62858#

This commit is contained in:
Michael Meeks 2010-12-14 10:45:28 +00:00
parent cefbbb1be2
commit 13711966af

View file

@ -243,6 +243,11 @@ namespace desktop {
FileBase::RC rc = Directory::createPath(aUserPath);
if ((rc != FileBase::E_None) && (rc != FileBase::E_EXIST)) return UserInstall::E_Creation;
#ifdef UNIX
// set safer permissions for the user directory by default
File::setAttributes(aUserPath, Attribute_OwnWrite| Attribute_OwnRead| Attribute_OwnExe);
#endif
// copy data from shared data directory of base installation
for (sal_Int32 i=0; pszSrcList[i]!=NULL && pszDstList[i]!=NULL; i++)
{