update dev300-m58
[ooovba.git] / applied_patches / 0078-desktop-safer-user-dir-perm.diff
blob2b8dad25b8f2f5349a45cda64460e20024fe4e81
1 --- desktop/source/app/userinstall.cxx.old 2006-03-06 19:19:26.000000000 +0100
2 +++ desktop/source/app/userinstall.cxx 2006-03-06 20:18:54.000000000 +0100
3 @@ -280,6 +280,11 @@
4 FileBase::RC rc = Directory::create(aUserPath);
5 if ((rc != FileBase::E_None) && (rc != FileBase::E_EXIST)) return UserInstall::E_Creation;
7 +#ifdef UNIX
8 + // set safer permissions for the user directory by default
9 + File::setAttributes(aUserPath, Attribute_OwnWrite| Attribute_OwnRead| Attribute_OwnExe);
10 +#endif
12 // copy data from shared data directory of base installation
13 for (sal_Int32 i=0; pszSrcList[i]!=NULL && pszDstList[i]!=NULL; i++)