diff --git a/net/samba423/files/patch-lib_replace_xattr.c b/net/samba423/files/patch-lib_replace_xattr.c new file mode 100644 index 000000000000..8e11ab29cf39 --- /dev/null +++ b/net/samba423/files/patch-lib_replace_xattr.c @@ -0,0 +1,14 @@ +--- lib/replace/xattr.c.orig 2026-01-23 10:53:40 UTC ++++ lib/replace/xattr.c +@@ -279,9 +279,9 @@ static ssize_t bsd_attr_list (int type, extattr_arg ar + errno = ERANGE; + return -1; + } +- strncpy(list, extattr[t].name, extattr[t].len + 1); ++ memmove(list, extattr[t].name, extattr[t].len + 1); + list += extattr[t].len; +- strncpy(list, buf + i + 1, len); ++ memmove(list, buf + i + 1, len); + list[len] = '\0'; + list += len + 1; + }