Whamcloud - gitweb
LU-12703 utils: reset rootpath in llapi_search_rootpath() 35/36335/4
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 30 Sep 2019 20:50:49 +0000 (23:50 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 18 Oct 2019 01:06:58 +0000 (01:06 +0000)
commit3e2e0025d1e929763f9d4de48746c3433d3684d5
treefa655e864dd82032b5ae75affcaa45dffa993549
parent45222b2ef279d62ac3aab0e7babc55d77e3c93a2
LU-12703 utils: reset rootpath in llapi_search_rootpath()

as get_root_path() can use it as a source and fail if
passed pathname contains garbage (on stack);

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I9f628353c872afc82a582b0a6ca960cd0e8cffcb
Reviewed-on: https://review.whamcloud.com/36335
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/liblustreapi.c