Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-11-28 18:42:51 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-11-28 18:42:51 (GMT)
commit586d6caff1fc566031060eab357418f68e8cf099 (patch)
tree5f8989561133e2da0f9143dff2d8e0f5ca1e6e35 /lib
parent6046c8ed46ed92d02ef9cc27446b4e02fccd9ba6 (diff)
Fix profiles and activity dir permissions.
Diffstat (limited to 'lib')
-rw-r--r--lib/sugar/bundle/bundle.py2
-rw-r--r--lib/sugar/env.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sugar/bundle/bundle.py b/lib/sugar/bundle/bundle.py
index 33fd1a8..f7f18c9 100644
--- a/lib/sugar/bundle/bundle.py
+++ b/lib/sugar/bundle/bundle.py
@@ -108,7 +108,7 @@ class Bundle:
raise AlreadyInstalledException
if not os.path.isdir(install_dir):
- os.mkdir(install_dir)
+ os.mkdir(install_dir, 0775)
# zipfile provides API that in theory would let us do this
# correctly by hand, but handling all the oddities of
diff --git a/lib/sugar/env.py b/lib/sugar/env.py
index c46b7d0..dc763c1 100644
--- a/lib/sugar/env.py
+++ b/lib/sugar/env.py
@@ -55,7 +55,7 @@ def get_profile_path(path=None):
base = os.path.join(os.path.expanduser('~/.sugar'), profile_id)
if not os.path.isdir(base):
try:
- os.makedirs(base)
+ os.makedirs(base, 0770)
except OSError, exc:
print "Could not create user directory."