[sabayon] Bug #610876: Symlink in /etc/skel causes crash
- From: Warren Togami <wtogami src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sabayon] Bug #610876: Symlink in /etc/skel causes crash
- Date: Tue, 23 Feb 2010 19:58:03 +0000 (UTC)
commit 47b553960205cea631dd24331d532dbea6aea9c0
Author: Warren Togami <wtogami redhat com>
Date: Tue Feb 23 14:56:57 2010 -0500
Bug #610876: Symlink in /etc/skel causes crash
lib/usermod.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/usermod.py b/lib/usermod.py
index 4e7e364..27a8597 100755
--- a/lib/usermod.py
+++ b/lib/usermod.py
@@ -57,10 +57,10 @@ def create_temporary_homedir (uid, gid):
elif os.path.isdir (src_path):
os.mkdir (dst_path)
copy_tree (src_path, dst_path, uid, gid)
+ os.chown (dst_path, uid, gid)
else:
shutil.copy2 (src_path, dst_path)
-
- os.chown (dst_path, uid, gid)
+ os.chown (dst_path, uid, gid)
copy_tree (SKEL_HOMEDIR, temp_homedir, uid, gid)
os.chown (temp_homedir, uid, gid)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]