[Libreoffice-commits] .: desktop/source

Michael Meeks mmeeks at kemper.freedesktop.org
Tue Dec 14 02:48:10 PST 2010


 desktop/source/app/userinstall.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 2a2cda2c1df7c71b302cafbfcf4db91b7132301f
Author: Michael Meeks <michael.meeks at novell.com>
Date:   Tue Dec 14 10:45:28 2010 +0000

    safer permissions on the user dir i#62858#

diff --git a/desktop/source/app/userinstall.cxx b/desktop/source/app/userinstall.cxx
index 71d2b9b..644bda2 100644
--- a/desktop/source/app/userinstall.cxx
+++ b/desktop/source/app/userinstall.cxx
@@ -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++)
         {


More information about the Libreoffice-commits mailing list