summaryrefslogtreecommitdiffstats
path: root/usr.bin/script
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-12-30 01:20:08 +0000
committerpeter <peter@FreeBSD.org>1997-12-30 01:20:08 +0000
commitc4bd99c59d52a5c250f50814c56243013fd89b3e (patch)
tree563bcc16ffdbeb0011c916495f900491d928d30f /usr.bin/script
parent3314e9bde154628c91b1275f2120b19b7e18668e (diff)
downloadFreeBSD-src-c4bd99c59d52a5c250f50814c56243013fd89b3e.zip
FreeBSD-src-c4bd99c59d52a5c250f50814c56243013fd89b3e.tar.gz
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.
Diffstat (limited to 'usr.bin/script')
-rw-r--r--usr.bin/script/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index f02f868..94e4ce0 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 <sys/types.h>
@@ -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);
OpenPOWER on IntegriCloud