diff options
author | des <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
commit | 3ca80efd3ae02267b3cd6ee92f92c592e3892a1e (patch) | |
tree | 47aae64b409356a4bf073cd33de8d06645f2ff88 /bin | |
parent | 528a0157d45bb4f11b9858153bbea5ecb7dafd3a (diff) | |
download | FreeBSD-src-3ca80efd3ae02267b3cd6ee92f92c592e3892a1e.zip FreeBSD-src-3ca80efd3ae02267b3cd6ee92f92c592e3892a1e.tar.gz |
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 'bin')
-rw-r--r-- | bin/mv/mv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 2718285..b471bef 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -45,7 +45,7 @@ static char const copyright[] = static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id: mv.c,v 1.20 1998/06/09 03:39:38 imp Exp $"; + "$Id: mv.c,v 1.21 1998/06/28 21:00:04 bde Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -308,7 +308,7 @@ copy(from, to) { int pid, status; - if ((pid = vfork()) == 0) { + if ((pid = fork()) == 0) { execl(_PATH_CP, "mv", "-PRp", from, to, NULL); warn("%s", _PATH_CP); _exit(1); |