summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-03-25 21:58:09 +0000
committerderaadt <deraadt@openbsd.org>1997-03-25 21:58:09 +0000
commitc2667570d6203e01683b41a2d85f77c84fdf209b (patch)
treee558a6ab707a3f4f67a52a7d315f76dc120512f1 /usr.bin/script/script.c
parentconfig file paranoia (diff)
downloadwireguard-openbsd-c2667570d6203e01683b41a2d85f77c84fdf209b.tar.xz
wireguard-openbsd-c2667570d6203e01683b41a2d85f77c84fdf209b.zip
exec with argv[0] as shell, not "sh"; era@iki.fi
Diffstat (limited to 'usr.bin/script/script.c')
-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 058bc326c44..9ccb90b80ca 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: script.c,v 1.3 1997/01/15 23:43:11 millert Exp $ */
+/* $OpenBSD: script.c,v 1.4 1997/03/25 21:58:09 deraadt Exp $ */
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: script.c,v 1.3 1997/01/15 23:43:11 millert Exp $";
+static char rcsid[] = "$OpenBSD: script.c,v 1.4 1997/03/25 21:58:09 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -214,7 +214,7 @@ doshell()
(void)close(master);
(void)fclose(fscript);
login_tty(slave);
- execl(shell, "sh", "-i", NULL);
+ execl(shell, shell, "-i", NULL);
perror(shell);
fail();
}