Fix: strlcpy removed in linux 6.8.0-rc1
authorKienan Stewart <kstewart@efficios.com>
Mon, 22 Jan 2024 16:47:40 +0000 (11:47 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Feb 2024 21:53:38 +0000 (16:53 -0500)
commit7e8d89d158a57a9d692e357829d096b0f3a3c5ba
tree9d84561352ff679cf0bc4df102c2415e969c6ef6
parentf4c1678d07a52aec704d5592b58f820734cd29b5
Fix: strlcpy removed in linux 6.8.0-rc1

See upstream commit:

    commit d26270061ae66b915138af7cd73ca6f8b85e6b44
    Author: Kees Cook <keescook@chromium.org>
    Date:   Thu Jan 18 12:31:55 2024 -0800

        string: Remove strlcpy()

        With all the users of strlcpy() removed[1] from the kernel, remove the
        API, self-tests, and other references. Leave mentions in Documentation
        (about its deprecation), and in checkpatch.pl (to help migrate host-only
        tools/ usage). Long live strscpy().

The replacement interface, `strscpy`, has been available since linux
4.3, introduced in the upstream commit
30c44659f4a3e7e1f9f47e895591b4b40bf62671.

As lttng-modules master branch targets linux 4.4+ at this time,
`strlcpy` can be replaced with `strscpy`.

Change-Id: I27cdff70a504b25340cc59150ed8e959d9629e43
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/ringbuffer/ring_buffer_backend.c
This page took 0.025986 seconds and 4 git commands to generate.