MirBSD Korn Shell for Jehanne
Go to file
tg fda010d8de SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change.
TODO: I am seriously considering following Chet and changing
the way this works, by explicitly dropping privs unless the
shell is run with -p. Every other shell does it like mksh,
except Heirloom sh, which on the other hand doesn’t know any
explicit set -p or set +p (though it doesn’t know set +foo
for any foo either).

┌──┤ QUESTION: Do we need the ability to do this:
│ tg@blau:~ $ ./suidmksh -p -c 'whoami; set +p; whoami'
│ root
│ tg

If not, I’m seriously considering to drop set ±p as well,
only parse -p on the command line, with +p being the default,
and dropping FPRIVILEGED.

Thanks to RT for noticing and jilles for initial follow-up
discussion, as well as Chet Ramey for doing the sane/secure
thing instead of following Debian.
2013-08-23 14:07:39 +00:00
Build.sh SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change. 2013-08-23 14:07:39 +00:00
Makefile SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change. 2013-08-23 14:07:39 +00:00
check.pl partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
check.t SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change. 2013-08-23 14:07:39 +00:00
dot.mkshrc • don’t eat builtin cd errorlevel in function cd 2013-08-22 13:46:46 +00:00
edit.c Ypnose discovered a problem with multi-line prompts and SIGWINCH 2013-08-16 10:59:03 +00:00
emacsfn.h • merge printf from OpenBSD 2010-07-17 22:09:40 +00:00
eval.c fix another clobbered-by-setjmp/longjmp warning 2013-07-24 18:03:57 +00:00
exec.c simplify 2013-07-21 20:44:44 +00:00
expr.c fix postun in not evaluated side of e.g. ternary operator (LP#1187729) 2013-07-21 18:38:56 +00:00
funcs.c use ‘z’ shf printf modifier for out-of-memory message, now that we have it 2013-06-03 22:28:33 +00:00
histrap.c harmonise sys_{sig,err}list ⓐ checks, ⓑ uses, ⓒ _decl values when not needed, ⓓ prototypes; ⓔ “const” is a keyword and thus space-separated from the preceding ‘*’ pointer indicator 2012-12-28 02:28:39 +00:00
jobs.c TGIF, drinking-beer, Sysadmin Appreciation Day commit: 2013-07-26 20:33:24 +00:00
lalloc.c use ‘z’ shf printf modifier for out-of-memory message, now that we have it 2013-06-03 22:28:33 +00:00
lex.c Ypnose discovered a problem with multi-line prompts and SIGWINCH 2013-08-16 10:59:03 +00:00
lksh.1 remove the remark that lksh is not suitable for /bin/sh 2013-05-22 18:18:06 +00:00
main.c Steffen Daode Nurpmeso found an actual bug: 2013-07-25 18:07:47 +00:00
misc.c SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change. 2013-08-23 14:07:39 +00:00
mksh.1 SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change. 2013-08-23 14:07:39 +00:00
mksh.ico add the desktop shortcut / icon from mksh/Win32 so it may be used by everyone for mksh/Unix too 2013-07-25 16:18:25 +00:00
sh.h SECURITY: Unbreak “set +p”, broken by OpenBSD ksh change. 2013-08-23 14:07:39 +00:00
sh_flags.h improve density of .rodata (with net win on .text size(1)) via better struct packing 2013-08-11 14:57:11 +00:00
shf.c partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
strlcpy.c more KNF, mostly whitespace, this time more manual labour applying style(9) 2009-06-10 18:12:51 +00:00
syn.c from oksh: “for var in; do” shouldn’t be interpreted as “for var; do” (POSIX) 2013-06-03 22:28:17 +00:00
tree.c TGIF, drinking-beer, Sysadmin Appreciation Day commit: 2013-07-26 20:33:24 +00:00
var.c prevent indirect recursion loops for namerefs; found by ormaaj, thanks! 2013-05-31 22:47:14 +00:00
var_spec.h oops, this list is s’pos’ta be sorted 2012-11-30 16:45:25 +00:00