summaryrefslogtreecommitdiffstats
path: root/usr.bin/script
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-08-11 23:45:59 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-08-11 23:45:59 +0000
commita0bc0fa7295b3634c98809db982b52340fe3784f (patch)
tree9256155aba00fe2bd8588881e805b4b533de9be6 /usr.bin/script
parent216b1d8c644310b7af0c016ffd64a92be2e62a7d (diff)
downloadFreeBSD-src-a0bc0fa7295b3634c98809db982b52340fe3784f.zip
FreeBSD-src-a0bc0fa7295b3634c98809db982b52340fe3784f.tar.gz
Pass as argv[0] the name of the shell executed instead of "sh".
PR: 2851 Reported by: era@iki.fi Obtained from: NetBSD
Diffstat (limited to 'usr.bin/script')
-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 9f83627..c4f3e91 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();
OpenPOWER on IntegriCloud