diff options
author | Chris Lumens <clumens@redhat.com> | 2006-11-27 16:08:10 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-11-27 16:08:10 +0000 |
commit | 8fd1b8f7cda799504638d702371a2525bbb1cea5 (patch) | |
tree | 027b76d4db1fa3a1db29ac11d26f835cbb832746 | |
parent | 695dcc29c976725ed82de58154ca2cb503a6ebc2 (diff) | |
download | anaconda-8fd1b8f7cda799504638d702371a2525bbb1cea5.tar.gz anaconda-8fd1b8f7cda799504638d702371a2525bbb1cea5.tar.xz anaconda-8fd1b8f7cda799504638d702371a2525bbb1cea5.zip |
Set the right home directory so it gets made correctly (#216681).
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | users.py | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-11-27 Chris Lumens <clumens@redhat.com> + + * users.py (Users.createUser): Set the right home directory so it + gets made correctly (#216681). + 2006-11-21 Chris Lumens <clumens@redhat.com> * anaconda.spec: Bump version. @@ -78,7 +78,10 @@ class Users: homedir = "/home/" + name # Do this to make the user's home dir under the install root. - userEnt.set(libuser.HOMEDIRECTORY, os.path.join(root, homedir)) + if homedir[0] != "/": + userEnt.set(libuser.HOMEDIRECTORY, root + "/" + homedir) + else: + userEnt.set(libuser.HOMEDIRECTORY, root + homedir) if shell: userEnt.set(libuser.LOGINSHELL, shell) |