]> git.ipfire.org Git - thirdparty/glibc.git/commit
string: Fix strerrorname_np return value [BZ #26555]
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 31 Aug 2020 14:53:51 +0000 (11:53 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 29 Sep 2020 16:56:06 +0000 (13:56 -0300)
commitcef95fdc2e4002ee6357d8d40ef73c8d875720e3
tree3488240efb523a6cf14a576d0969bf4460373716
parentdfb8e514cf4d770a9ce4e7858a351b9a2893614d
string: Fix strerrorname_np return value [BZ #26555]

It returns the string of the error constant, not its description (as
strerrordesc_np).  To handle the Hurd error mapping, the ERR_MAP was
removed from errlist.h to errlist.c.

Also, the testcase test-strerr (added on 325081b9eb2) was not added
on the check build neither it builds correctly.  This patch also
changed it to decouple from errlist.h, the expected return values
are added explicitly for both both strerrorname_np and strerrordesc_np
directly.

Checked on x86_64-linux-gnu and i686-linux-gnu.  I also run a make
check for i686-gnu.
stdio-common/Makefile
stdio-common/errlist.c
stdio-common/test-strerr.c
sysdeps/gnu/errlist.h