374005
From 65ce3a27da47cecf71015b16b1d186c49cbb7bcc Mon Sep 17 00:00:00 2001
374005
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
374005
Date: Tue, 17 Sep 2013 08:07:33 -0400
374005
Subject: [PATCH] iscsi tools: Correctly get username_in and password_in
374005
 flashnode params
374005
374005
Fix to correctly read username_in and password_in sysfs params for
374005
flashnode session.
374005
374005
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
374005
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
374005
---
374005
 usr/iscsi_sysfs.c | 4 ++--
374005
 1 file changed, 2 insertions(+), 2 deletions(-)
374005
374005
diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
374005
index 56cb90c..04c3673 100644
374005
--- a/usr/iscsi_sysfs.c
374005
+++ b/usr/iscsi_sysfs.c
374005
@@ -601,12 +601,12 @@ int iscsi_sysfs_get_flashnode_info(struct flashnode_rec *fnode,
374005
 	sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username",
374005
 		      (fnode->sess).username, sizeof((fnode->sess).username));
374005
 	sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username_in",
374005
-		      (fnode->sess).username,
374005
+		      (fnode->sess).username_in,
374005
 		      sizeof((fnode->sess).username_in));
374005
 	sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password",
374005
 		      (fnode->sess).password, sizeof((fnode->sess).password));
374005
 	sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password_in",
374005
-		      (fnode->sess).password,
374005
+		      (fnode->sess).password_in,
374005
 		      sizeof((fnode->sess).password_in));
374005
 	sysfs_get_uint(conn_id, ISCSI_FLASHNODE_SUBSYS, "statsn",
374005
 		       &((fnode->conn[0]).stat_sn));
374005
-- 
374005
1.8.3.1
374005