activation: replace link_path with lv_path according to the previous condition check.
PATCH 1/1 activation: replace link_path with lv_path according to the previous condition check.
From: LiaoPingfang <[email protected]>
link_path should be lv_path, per previous condition check: if (!lstat(lv_path, &buf)).
Signed-off-by LiaoPingfang <[email protected]>
--- lib/activate/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/activate/fs.c +1 -1
@@ -176,7 +176,7 @@ static int _mk_link(const char *dev_dir, const char *vg_name,if (!lstat (lv_path, &buf)) {if (!S_ISLNK (buf.st_mode) && !S_ISBLK (buf.st_mode)) {log_error ("Symbolic link %s not created: file exists" , - link_path); + lv_path);return 0 ; }
Signature · 1 line
2.9.5