Spawn nscd, don't exec()
We were replacing the process with nscd. Oops.
This commit is contained in:
parent
2025df30a6
commit
d3e7fa1707
|
@ -79,7 +79,7 @@ if not os.path.isdir(cfg['skeleton_dir']):
|
|||
fail("invalid skeleton dir %s" % cfg['skeleton_dir'])
|
||||
|
||||
try:
|
||||
os.execvp("/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "passwd"))
|
||||
os.spawnvp(os.P_WAIT, "/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "passwd"))
|
||||
pwent = pwd.getpwnam(username)
|
||||
uid = pwent.pw_uid
|
||||
gid = pwent.pw_gid
|
||||
|
|
Loading…
Reference in New Issue