Whamcloud - gitweb
LU-16768 lfs: copy optarg string other than using it directly 33/50733/2
authorBobi Jam <bobijam@whamcloud.com>
Tue, 25 Apr 2023 02:15:11 +0000 (10:15 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 9 May 2023 05:46:00 +0000 (05:46 +0000)
commit75db98cef3df8f9a0e1b6e7a5150f3c332e6167b
tree7d4c317ffa2c6f9cbf5b6bec089d3e093062e46c
parent562865630e67afb06d0fbf679ebee243691bec66
LU-16768 lfs: copy optarg string other than using it directly

Copy optarg string for fp_format_printf_str lest it be messed
later.

Fixes: 6b8e97b76c ("LU-10378 utils: add formatted printf to lfs find")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ib32883d3261ae921adf0fdd7b05bcbf728de7557
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50733
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Rick Mohr <mohrrf@ornl.gov>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lfs.c