Whamcloud - gitweb
LU-18896 utils: don't miss null-terminator in append_param 85/58685/8
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 4 Apr 2025 13:29:07 +0000 (16:29 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 25 Apr 2025 00:51:49 +0000 (00:51 +0000)
commit53ae11aa46eb4c8cff5002b199cd0ea38e129d8e
tree4688f68dbbdf5e086c7eb9551eb803f5aade4bdf
parent6210f4ae96633b95fc62c8fddc7d9517b5bb7e5c
LU-18896 utils: don't miss null-terminator in append_param

The code to move tail can skip null-terminator if there is
no tail and parameter is the last one.

Fixes: f9d346f0c1 ("LU-18587 utils: allow large NID lists in mount tools")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I088f7a0eda80a9df1d55b19db28793aa488cc95e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58685
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/utils/mount_utils.c