Spawn nscd, don't exec()

We were replacing the process with nscd. Oops.
This commit is contained in:
Michael Spang 2007-10-01 18:08:04 -04:00
parent 2025df30a6
commit d3e7fa1707
1 changed files with 1 additions and 1 deletions

View File

@ -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