From 0e604e984ac44b6279909e5444afee66cea13435 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 30 Dec 1997 01:20:08 +0000 Subject: [PATCH] Fix typo while copying patch from the 2.2 system that it came from Use execvp rather than execv so that full paths are not needed. --- usr.bin/script/script.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index f02f86821fe2..94e4ce08a594 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: script.c,v 1.5 1997/08/08 12:24:49 charnier Exp $"; + "$Id: script.c,v 1.6 1997/12/29 13:31:46 peter Exp $"; #endif /* not lint */ #include @@ -97,7 +97,7 @@ main(argc, argv) aflg = 1; break; case 'q': - aflg = 1; + qflg = 1; break; case '?': default: @@ -228,7 +228,7 @@ doshell(av) (void)fclose(fscript); login_tty(slave); if (av[0]) - execv(av[0], av); + execvp(av[0], av); else execl(shell, "sh", "-i", NULL); warn(shell);