[PATCH] hush: Check special names after export (ex. PS1)

Deweloper deweloper at wp.pl
Mon May 13 21:21:39 UTC 2019


Sounds great. Thank you.
I thought I was the last user of hush before switching to ash due to no response to http://lists.busybox.net/pipermail/busybox/2018-August/086591.html

Dnia 2019-05-13, o godz. 16:01:25
Catherine Garabedian <catherine at kubos.co> napisał(a):

> Package: busybox
> Version: v1.30.1
> Severity: medium
> 
> This patch (attached) causes the special hush variables (PS1, PS2, LINENO,
> etc) to be updated after an `export` command is performed.
> 
> This fixes a bug where, when the PS1 variable is updated with `export
> PS1='# '`, the command line prompt becomes corrupted. This issue is because
> the pointer to the old PS1 string is freed, but the PS1 global variable
> isn't updated to contain the pointer to the new PS1 string.
> This issue was introduced in v1.29.0.
> 
> Without this patch, the issue can be worked around by using `PS1='# '` to
> update the envar instead of `export PS1='# '`.
> 
> I have run the tests in the 'testsuite' directory and no new errors were
> introduced.
> 
> ~ Catherine Garabedian



More information about the busybox mailing list