iscsi-initiator-utils/iscsi-initiator-utils-fwparam_sysfs-fix-pathname-manipulation.patch
akozumpl 41e86a17f5 Make libiscsi nodes remember the interface they connect through. fwparam_sysfs:
fix pathname manipulation error in fwparam_sysfs_boot_info.

Related: rhbz#529443
2011-02-09 16:45:49 +00:00

27 lines
933 B
Diff

From add2b9985e7d35c5f3320a3a13e8f90a05a06d82 Mon Sep 17 00:00:00 2001
From: Ales Kozumplik <akozumpl@redhat.com>
Date: Mon, 7 Feb 2011 17:00:33 +0100
Subject: [PATCH 1/2] fwparam_sysfs: fix pathname manipulation error in fwparam_sysfs_boot_info.
Related: rhbz#529443
---
utils/fwparam_ibft/fwparam_sysfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utils/fwparam_ibft/fwparam_sysfs.c b/utils/fwparam_ibft/fwparam_sysfs.c
index b5568c5..3997363 100644
--- a/utils/fwparam_ibft/fwparam_sysfs.c
+++ b/utils/fwparam_ibft/fwparam_sysfs.c
@@ -365,7 +365,7 @@ int fwparam_sysfs_boot_info(struct boot_context *context)
if (strncmp(dent->d_name, ISCSI_LLD_SUBSYS_PREFIX, 10))
continue;
- snprintf(lld_root, FILENAMESZ, ISCSI_LLD_ROOT"%s",
+ snprintf(lld_root, FILENAMESZ, ISCSI_LLD_ROOT"%s/",
dent->d_name);
if (!get_boot_info(context, lld_root, dent->d_name))
goto done;
--
1.7.3.3