• bring back automatic turn-on of FPOSIX if called as sh/-sh

‣ only if !MKSH_SMALL
  ‣ add appropriate regression test
• if FPOSIX is set, do not close fds > 2 on exec, Debian #499139
• add appropriate regression tests for keeping fds private or not
This commit is contained in:
tg
2008-09-17 19:31:30 +00:00
parent a04ad530a2
commit 8a853f24be
5 changed files with 78 additions and 12 deletions

4
sh.h
View File

@ -100,9 +100,9 @@
#define __SCCSID(x) __IDSTRING(sccsid,x)
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.231 2008/09/14 20:24:59 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.232 2008/09/17 19:31:30 tg Exp $");
#endif
#define MKSH_VERSION "R35 2008/09/14"
#define MKSH_VERSION "R35 2008/09/17"
#ifndef MKSH_INCLUDES_ONLY