Whamcloud - gitweb
LU-17592 build: kernel 6.8 removed strlcpy()
[fs/lustre-release.git] / lustre / llite / pcc.c
index d9ed477..472325d 100644 (file)
@@ -3020,7 +3020,7 @@ int pcc_ioctl_state(struct file *file, struct inode *inode,
        if (IS_ERR(path))
                GOTO(out_unlock, rc = PTR_ERR(path));
 
-       if (strlcpy(state->pccs_path, path, buf_len) >= buf_len)
+       if (strscpy(state->pccs_path, path, buf_len) < 0)
                GOTO(out_unlock, rc = -ENAMETOOLONG);
 
 out_unlock: