busybox-glibc-ism-v2
dscho
tagged this
19 Jul 21:33
As pointed out by Kang-Che Sung and verified by Jody Bruchon, the "%m" format placeholder is really not in any open standard. The previous iteration of these changes tried to replace the "%m" by explicit strerror(errno) manually, but as Kang-Che Sung indicated, this is not very elegant. Sadly, we cannot use bb_perror_msg() here because the functionality of that helper is very different (and lacks support for ash's TRACE). Happily, I could easily follow bb_perror_msg()'s example and introduce a new helper in ash's source code. Johannes Schindelin (2): ash: introduce ash_perror_msg_and_raise_error() ash: avoid GLIBC'ism %m shell/ash.c | 49 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 16 deletions(-) base-commit: 1ef3ce91c70cb6a536438132d3202ccb3eddadbc Submitted-As: https://public-inbox.org/git/null
Assets 2
-
2017-07-19T21:33:43Z -
2017-07-19T21:33:43Z -