Skip to contentSkip to conversation

activation: replace link_path with lv_path according to the previous condition check.

PATCH New Yi Wang 1 participant 1 message Jun 3, 2020

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

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)).

---
 lib/activate/fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/activate/fs.c +1 -1
index b2c99fc..a92819c 100644
@@ -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