busybox/coreutils
Natanael Copa e880c9c100 echo: do not assume that free() leaves errno unmodified
musl libc's mallocng free() may modify errno if kernel does not support
MADV_FREE which causes echo to echo with error when it shouldn't.

Future versions of POSIX[1] will require that free() leaves errno
unmodified but til then, do not rely free() implementation.

Should fix downstream issues:
https://github.com/alpinelinux/docker-alpine/issues/134
https://gitlab.alpinelinux.org/alpine/aports/-/issues/12311

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-02-23 12:59:29 +01:00
..
libcoreutils
basename.c
cat.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
chgrp.c chgrp: correct the usage for non-desktop chgrp calls 2019-11-17 17:06:31 +01:00
chmod.c libbb: shrink recursive_action() by reducing memory pressure 2020-10-01 21:52:16 +02:00
chown.c libbb: shrink recursive_action() by reducing memory pressure 2020-10-01 21:52:16 +02:00
chroot.c
cksum.c
comm.c
Config.src
cp.c help text: replace [OPTIONS] with actual options (if not too long) 2020-12-13 22:34:05 +01:00
cut.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
date.c libbb: in @SECONDS date format, use 64-bit time if libc allows 2020-11-28 23:21:13 +01:00
dd.c dd: support for O_DIRECT i/o 2020-12-14 20:27:57 +01:00
df.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
dirname.c
dos2unix.c
du.c
echo.c echo: do not assume that free() leaves errno unmodified 2021-02-23 12:59:29 +01:00
env.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
expand.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
expr.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
factor.c factor: fix comment 2020-12-23 02:03:04 +01:00
false.c
fold.c
head.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
hostid.c
id_test.sh
id.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
install.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
Kbuild.src
link.c
ln.c help text: replace [OPTIONS] with actual options (if not too long) 2020-12-13 22:34:05 +01:00
logname.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
ls.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
md5_sha1_sum.c sha3sum: fix --help: -a does not depend on FEATURE_MD5_SHA1_SUM_CHECK 2020-11-27 15:55:46 +01:00
mkdir.c help text tweaks 2020-12-13 19:04:19 +01:00
mkfifo.c
mknod.c Fix mknod compilation on the FreeBSD 2021-01-04 13:28:28 +01:00
mktemp.c
mv.c
nice.c
nl.c nl: ensure '-b n' option displays file content 2021-02-02 17:37:41 +01:00
nohup.c
nproc.c
od_bloaty.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
od.c
paste.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
printenv.c
printf.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
pwd.c
readlink.c
realpath.c
rm.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
rmdir.c help text tweaks 2020-12-13 19:04:19 +01:00
seq.c
shred.c
shuf.c
sleep.c
sort.c help text tweaks 2020-12-18 04:12:51 +01:00
split.c decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly 2020-11-30 13:03:03 +01:00
stat.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
stty.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
sum.c
sync.c
tac.c
tail.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
tee.c tee: do not intercept SIGPIPE 2019-10-07 14:25:45 +02:00
test_ptr_hack.c
test.c decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly 2020-11-30 13:03:03 +01:00
timeout.c help text tweaks 2020-12-18 04:12:51 +01:00
touch.c
tr.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
true.c
truncate.c
tty.c
uname.c
uniq.c help text tweaks 2020-12-18 04:12:51 +01:00
unlink.c
usleep.c
uudecode.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
uuencode.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
wc.c
who.c
whoami.c
yes.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00