From: Adheer Chandravanshi <adheer.chandravan...@qlogic.com> Fix to correctly read username_in and password_in sysfs params for flashnode session.
Signed-off-by: Adheer Chandravanshi <adheer.chandravan...@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudh...@qlogic.com> --- usr/iscsi_sysfs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c index 56cb90c..04c3673 100644 --- a/usr/iscsi_sysfs.c +++ b/usr/iscsi_sysfs.c @@ -601,12 +601,12 @@ int iscsi_sysfs_get_flashnode_info(struct flashnode_rec *fnode, sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username", (fnode->sess).username, sizeof((fnode->sess).username)); sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username_in", - (fnode->sess).username, + (fnode->sess).username_in, sizeof((fnode->sess).username_in)); sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password", (fnode->sess).password, sizeof((fnode->sess).password)); sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password_in", - (fnode->sess).password, + (fnode->sess).password_in, sizeof((fnode->sess).password_in)); sysfs_get_uint(conn_id, ISCSI_FLASHNODE_SUBSYS, "statsn", &((fnode->conn[0]).stat_sn)); -- 1.7.1 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/groups/opt_out.