safer permissions on the user dir i#62858#
This commit is contained in:
parent
cefbbb1be2
commit
13711966af
1 changed files with 5 additions and 0 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue