SECURITY fix: when spawning mksh on a new terminal (tty, not /dev/null),

flush all of its I/O first – someone could have written on it beforehand
This commit is contained in:
tg
2008-04-11 19:55:24 +00:00
parent afaa3ffa59
commit fc607a6c1b
3 changed files with 13 additions and 9 deletions

4
sh.h
View File

@@ -8,8 +8,8 @@
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.203 2008/04/06 23:27:19 tg Exp $"
#define MKSH_VERSION "R33 2008/04/01"
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.204 2008/04/11 19:55:24 tg Exp $"
#define MKSH_VERSION "R33 2008/04/11"
#if HAVE_SYS_PARAM_H
#include <sys/param.h>