1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 15:04:13 +00:00
cde/src/cmd/ksh93/sh
Martijn Dekker db72f41f4b Fix subshell file descriptor leak
A file descriptor (at least 3, can't reproduce for 4 and up) opened
with 'exec' or 'redirect' in a virtual/non-forked subshell survived
that subshell after exiting it:

    $ ksh -c '(redirect 3>&1); echo bug >&3'
    bug

src/cmd/ksh93/sh/io.c:
- Apply a patch from OpenSUSE (ksh93-redirectleak.dif). Source:
  https://build.opensuse.org/package/show/openSUSE:Leap:42.3:Update/ksh

src/cmd/ksh93/tests/io.sh:
- Add regression test.

Thanks to Marc Wilson for flagging this up.
2020-07-21 04:12:40 +01:00
..
args.c Fix process substitution combined with redirection (#40) 2020-06-23 23:02:16 +01:00
arith.c silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02:00
array.c Fix crashes caused by 'typeset -RF' (#47) 2020-06-28 23:30:27 +01:00
bash.c Fix 47 typos in user-facing help and error messages 2020-06-12 01:45:12 +02:00
defs.c Fix 'test'/'[' exit status >1 on error in arithmetic expression 2020-06-12 01:45:15 +02:00
deparse.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
env.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
expand.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
fault.c Fix a fork bomb when vi is run from a script and sent Ctrl-Z (#73) 2020-07-13 19:10:23 +01:00
fcin.c Fix parsing of multibyte characters 2020-06-12 01:45:17 +02:00
init.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
io.c Fix subshell file descriptor leak 2020-07-21 04:12:40 +01:00
jobs.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
lex.c Fix ERE repetition expressions in [[ ... =~ ERE{x,y} ]] (#54) 2020-07-02 18:40:15 +01:00
macro.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
main.c ksh -i: only print newline on EOF if really interactive 2020-07-20 16:29:43 +01:00
name.c Fix memory leak on unset of associative array (#64) 2020-07-09 01:09:40 +01:00
nvdisc.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
nvtree.c Fix memory corruption when a compound variable is unset (#49) 2020-06-29 18:08:28 +01:00
nvtype.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
parse.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
path.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
pmain.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
shcomp.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
streval.c silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02:00
string.c shellquoting: rm redundant iswprint() call (re: f9d28935) 2020-07-16 01:13:59 +01:00
subshell.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00
suid_exec.c Fix 39 spelling errors and a formatting issue 2020-06-12 01:45:18 +02:00
tdump.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
timers.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
trestore.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
waitevent.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
xec.c Remove unused libcoshell 2020-07-17 19:28:52 +01:00