Whamcloud - gitweb
LU-16768 lfs: copy optarg string other than using it directly
authorBobi Jam <bobijam@whamcloud.com>
Wed, 19 Apr 2023 14:19:53 +0000 (22:19 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 11 May 2023 00:41:41 +0000 (00:41 +0000)
commit659495cb58f2eeb29784a37dcb1df7b5868708e4
treea3ed5916650ef86d1300ed4a333a53432d21709f
parentde45a83d44d09022bf7c57852c07e06c4cf0578c
LU-16768 lfs: copy optarg string other than using it directly

Copy optarg string for fp_format_printf_str lest it be messed
later.

Lustre-change: https://review.whamcloud.com/50733
Lustre-commit: 75db98cef3df8f9a0e1b6e7a5150f3c332e6167b

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ib32883d3261ae921adf0fdd7b05bcbf728de7557
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50690
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/lfs.c