Skip to content

Changes

Started by Oliver Smith
Started 1 day 3 hr ago
Queued 1 ms
Adjust to strncpy removal in linux 7.2-rc1

Related: https://docs.kernel.org/process/deprecated.html#strncpy
Related: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1a3746ccbb0a97bed3c06ccde6b880013b1dddc1
Change-Id: I860344fd23d5780fc588d19388ad91c6f6bcfc90
Oliver Smith at
Revert "Adjust to strncpy removal in linux 7.2-rc1"

There is another repository at
https://github.com/asterisk/dahdi-linux that appears to be compatible to
linux >= 2.6 and we want to in theory merge everything from our repo
into that at some point. strscpy isn't available in such early linux
versions yet, so revert commit b1bc81f8077c5cb52eae7fbd4021bf180159aed7
and add a different fix for building with 7.2-rc1 as next patch.

Related: https://gerrit.osmocom.org/c/dahdi-linux/+/42906/comments/c06cfbe4_fbd94c6e
Change-Id: I71ad66d33b4a19e4cf9b431bcc3d3cd02cad5e2f
Oliver Smith at
compatibility with kernel >= 7.2 which removed strncpy

In commit 079a028d6327e68cfa5d38b36123637b321c19a7 the kernel removed
strncpy.  Let's use strscpy instead.

Change-Id: I11a16ffed90223cbeae456a26834c0342146eb88
Oliver Smith at