Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-17592 build: kernel 6.8 removed strlcpy()
[fs/lustre-release.git]
/
lustre
/
llite
/
pcc.c
diff --git
a/lustre/llite/pcc.c
b/lustre/llite/pcc.c
index
d9ed477
..
472325d
100644
(file)
--- a/
lustre/llite/pcc.c
+++ b/
lustre/llite/pcc.c
@@
-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 (str
lcpy(state->pccs_path, path, buf_len) >= buf_len
)
+ if (str
scpy(state->pccs_path, path, buf_len) < 0
)
GOTO(out_unlock, rc = -ENAMETOOLONG);
out_unlock: