aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-03-31 10:23:59 +0100
committerRon Yorston <rmy@pobox.com>2018-03-31 10:23:59 +0100
commitada909acfa49fa59bbd8005e5b118c32447dfad0 (patch)
tree10b0e9d7ce7d5d6e1405d3fac4bf9307882ee799 /docs
parente2f7bd0469c8751d9f37d493d395180a61286e94 (diff)
downloadbusybox-w32-ada909acfa49fa59bbd8005e5b118c32447dfad0.tar.gz
busybox-w32-ada909acfa49fa59bbd8005e5b118c32447dfad0.tar.bz2
busybox-w32-ada909acfa49fa59bbd8005e5b118c32447dfad0.zip
ash: revise handling of builtin environment variables during fork
Commit db03ff5ea made some improvements to the handling of builtin environment variables during forkshell. However, more can be done. Currently the calculated size of varinit doesn't match what's actually copied. It overestimates the amount of string space and the number of pointers. The text of each builtin environment variable is also copied twice: once as part of vartab and again from varinit. Remove the code to copy varinit via the forkshell block. Instead use information from vartab and varinit_data to reinitialise varinit and fix the links in vartab. In addition, ensure that the LINENO variable is properly initialised in the child.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions