aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>1999-08-11 23:45:59 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>1999-08-11 23:45:59 +0000
commit5cba8ccae58fd988d6e50d72bf49eddd7ec05264 (patch)
tree6084db5e4f959c2b9665d37d4990163308366ec5 /usr.bin/script/script.c
parente426af039f87aaed8a4c757a634032a2ead00ce5 (diff)
downloadsrc-5cba8ccae58fd988d6e50d72bf49eddd7ec05264.tar.gz
src-5cba8ccae58fd988d6e50d72bf49eddd7ec05264.zip
Pass as argv[0] the name of the shell executed instead of "sh".
PR: 2851 Reported by: era@iki.fi Obtained from: NetBSD
Notes
Notes: svn path=/head/; revision=49646
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 9f83627f99df..c4f3e917dee1 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.8 1998/03/08 14:19:18 peter Exp $";
+ "$Id: script.c,v 1.9 1998/09/19 09:45:42 des Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -246,7 +246,7 @@ doshell(av)
execvp(av[0], av);
warn(av[0]);
} else {
- execl(shell, "sh", "-i", NULL);
+ execl(shell, shell, "-i", NULL);
warn(shell);
}
fail();