On Wed, Jul 5, 2023 at 2:49 PM HAGIO KAZUHITO(萩尾 一仁) <k-hagio-ab@nec.com> wrote:
On 2023/07/05 11:02, Lianbo Jiang wrote:
> Crash-utility implemented its own strlcpy(), but for now the latest
> glibc has added the strlcpy function to POSIX version(which is derived
> from OpenBSD). Eventually this caused the follow compilation error:

Thanks for the early fix.

It looks like there is no behavior difference between glibc's strlcpy
and crash's one in the crash source, so the weak attribute looks ok.

 
Yes,it's true. The current issue was found in Fedora Rawhide, the strlcpy() had been backported to Fedora glibc package.

Thank you, Kazu.

Lianbo
 
Applied with modifying the commit log a bit.
https://github.com/crash-utility/crash/commit/4ee56105881d7bb1da1e668ac5bb47a4e0846676

Thanks,
Kazu