-/* $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 $ */
/*
#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>
(void)close(master);
(void)fclose(fscript);
login_tty(slave);
- execl(shell, "sh", "-i", NULL);
+ execl(shell, shell, "-i", NULL);
perror(shell);
fail();
}