]> git.ipfire.org Git - thirdparty/linux.git/commit
fs/orangefs: Replace deprecated strcpy with memcpy + strscpy
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 17 Jan 2026 13:49:53 +0000 (14:49 +0100)
committerMike Marshall <hubcap@omnibond.com>
Mon, 19 Jan 2026 21:00:59 +0000 (16:00 -0500)
commit9e835108a9ae1c37aef52a6f8d53265f474904a1
tree389537d66caacab04de424883362814c30fc62d4
parent0eb1927502e870e4b8beaab403775056a8f4f0db
fs/orangefs: Replace deprecated strcpy with memcpy + strscpy

strcpy() is deprecated [1] and using strcat() is discouraged. In
orangefs_debugfs_init() and orangefs_client_debug_init(), replace them
with memcpy() since the string lengths are already known. Replace all
other uses of strcpy() with the safer strscpy().

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-debugfs.c