aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-08-16 12:48:43 +0100
committerRon Yorston <rmy@pobox.com>2024-08-16 13:21:48 +0100
commit027fb22e28fecc588d9e088a8d7d77fb63c7dc7b (patch)
tree2119a2e1fc4cff76dc0bf4510529e6d5068d19f2 /runit
parent2b00b4311ecf4c6f6331f8c969934fa792f7e15c (diff)
downloadbusybox-w32-027fb22e28fecc588d9e088a8d7d77fb63c7dc7b.tar.gz
busybox-w32-027fb22e28fecc588d9e088a8d7d77fb63c7dc7b.tar.bz2
busybox-w32-027fb22e28fecc588d9e088a8d7d77fb63c7dc7b.zip
ash: allow additional element in argv array
tryexec() in ash relies on all callers of shellexec() having an additional unused element before the start of its argv array. In busybox-w32 this was not the case when shellexec() was called from forkshell_shellexec(), as only the actual contents of the argv array were copied into the forkshell data block. In practice argv[-1] is only currently used when the 'which' applet is about to be run, so whatever got overwritten (probably cmdtable[30]) was unlikely to matter. Still, let's be correct and allocate the additional element. Adds 16 bytes.
Diffstat (limited to 'runit')
0 files changed, 0 insertions, 0 deletions