Linux 6.8 compat: implement strlcpy fallback

Linux has removed strlcpy in favour of strscpy. This implements a
fallback implementation of strlcpy for this case.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15805
(cherry picked from commit 7466e09a49)
This commit is contained in:
Rob Norris
2024-01-23 16:34:49 +11:00
committed by Tony Hutter
parent 3271604242
commit 38f6f3ada1
8 changed files with 106 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ extern "C" {
#include <sys/disp.h>
#include <sys/debug.h>
#include <sys/random.h>
#include <sys/string.h>
#include <sys/strings.h>
#include <sys/byteorder.h>
#include <sys/list.h>