diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
commit | 94e7f9dc998b872d6f2051f73b6a3145b2bc9b27 (patch) | |
tree | 9bad1cd4c171a98d574199142fe6d0ef76ba97ea /libutil | |
parent | b733a2d9ee1d711520e5a44350bb920b2a622338 (diff) | |
download | pw-darwin-94e7f9dc998b872d6f2051f73b6a3145b2bc9b27.tar.gz pw-darwin-94e7f9dc998b872d6f2051f73b6a3145b2bc9b27.tar.zst pw-darwin-94e7f9dc998b872d6f2051f73b6a3145b2bc9b27.zip |
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/pw_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libutil/pw_util.c b/libutil/pw_util.c index b6f6719..d005d16 100644 --- a/libutil/pw_util.c +++ b/libutil/pw_util.c @@ -36,7 +36,7 @@ static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: pw_util.c,v 1.9 1997/10/27 07:53:19 charnier Exp $"; #endif /* not lint */ /* @@ -148,7 +148,7 @@ char *username; pid_t pid; (void)fflush(stderr); - if (!(pid = vfork())) { + if (!(pid = fork())) { if(!username) { warnx("rebuilding the database..."); execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", tempname, NULL); @@ -180,7 +180,7 @@ pw_edit(notsetuid) else p = editor; - if (!(editpid = vfork())) { + if (!(editpid = fork())) { if (notsetuid) { (void)setgid(getgid()); (void)setuid(getuid()); |