From d3e7fa170754cdfeb581b62e768bac3e2791ac53 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Mon, 1 Oct 2007 18:08:04 -0400 Subject: [PATCH] Spawn nscd, don't exec() We were replacing the process with nscd. Oops. --- bin/addhomedir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addhomedir b/bin/addhomedir index 7212dc1..8873328 100755 --- a/bin/addhomedir +++ b/bin/addhomedir @@ -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