Whamcloud - gitweb
LU-18832 utils: lctl set_param --help segfault 10/58510/4
authorGiardi Sylwyn <sylwyn.giardi@cea.fr>
Wed, 19 Mar 2025 10:23:16 +0000 (11:23 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Mar 2025 05:58:15 +0000 (05:58 +0000)
commitf4a6b56cd2a7ab08f4627b3542151143abacc8a1
tree975b3636f064b704fb7978911565441ba5bda96c
parentc258fb593cabe3452f55c11a71adf89c4e0bd4a9
LU-18832 utils: lctl set_param --help segfault

Correct a bug when calling lctl. In some cases, using unkown option
made lctl to segfault. Corrected by adding NULL element at the end
of the longpost list to help parsing.

Test-Parameters: trivial
Fixes: e7b8986619 ("LU-17416 utils: option for lctl get_param to skip links")
Signed-off-by: Giardi Sylwyn <sylwyn.giardi@cea.fr>
Change-Id: I50cf97cf132e899a4f5c4a8f079638ecfe9ca6a4
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58510
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/lustre_param.c