diff options
author | Ron Yorston <rmy@pobox.com> | 2020-01-23 11:26:08 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-01-29 13:59:45 +0100 |
commit | b0c711e64f868fcab0711d8d0f86aaaa4ed93158 (patch) | |
tree | 42a92619ef723cce5153eb0160df8f36cf9dc5c4 /networking/hostname.c | |
parent | eb7f9acda147543079f261753a11d2afa340fc5e (diff) | |
download | busybox-b0c711e64f868fcab0711d8d0f86aaaa4ed93158.tar.gz |
ash: improve expandstr()
The dash maintainer recently posted a fix for issues with expanding
PS1. These had already been fixed differently in BusyBox ash. Borrow
a couple of improvements:
- Use a single call to setjmp() to trap errors in both readtoken1()
and expandarg().
- In case of error set the prompt to the literal value of PS1 rather
than the half-digested nonsense in stackblock() which might include
ugly control characters.
function old new delta
expandstr 353 300 -53
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/hostname.c')
0 files changed, 0 insertions, 0 deletions