Whamcloud - gitweb
LU-17592 build: kernel 6.8 removed strlcpy()
[fs/lustre-release.git] / lustre / osd-zfs / osd_lproc.c
index 05c3a27..a81c6d4 100644 (file)
@@ -67,7 +67,7 @@ static void osd_symlink_brw_stats(struct osd_device *osd)
        if (len_root > (p - path) || len_root + len_path + 16 > PATH_MAX)
                goto out;
 
-       strlcpy(path, root, len_root);
+       strscpy(path, root, len_root);
        if (p > path + len_root) {
                s = path + len_root;
                while ((*s++ = *p++) != '\0');