[sabayon] Bug #610877 Directory Permissions in /etc/skel are not preserved
- From: Warren Togami <wtogami src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sabayon] Bug #610877 Directory Permissions in /etc/skel are not preserved
- Date: Tue, 23 Feb 2010 20:23:03 +0000 (UTC)
commit 9fc9c52a37cc68e4566589e7f13e19af5a236bc1
Author: Warren Togami <wtogami redhat com>
Date: Tue Feb 23 15:18:37 2010 -0500
Bug #610877 Directory Permissions in /etc/skel are not preserved
lib/usermod.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/usermod.py b/lib/usermod.py
index 27a8597..fcb5a7e 100755
--- a/lib/usermod.py
+++ b/lib/usermod.py
@@ -56,6 +56,7 @@ def create_temporary_homedir (uid, gid):
os.symlink (linkto, dst_path)
elif os.path.isdir (src_path):
os.mkdir (dst_path)
+ os.chmod (dst_path, os.lstat(src_path).st_mode)
copy_tree (src_path, dst_path, uid, gid)
os.chown (dst_path, uid, gid)
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]