From: Bjoern Walk <bwalk(a)linux.vnet.ibm.com>
The path prefixes for sysfs trees are always prepended by paths
beginning with a slash, making the trailing slash in the prefix
redundant.
Signed-off-by: Bjoern Walk <bwalk(a)linux.vnet.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay(a)linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy(a)linux.vnet.ibm.com>
---
src/util/virutil.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/virutil.c b/src/util/virutil.c
index 844c947..0291378 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -1777,8 +1777,8 @@ virGetDeviceUnprivSGIO(const char *path,
}
#ifdef __linux__
-# define SYSFS_FC_HOST_PATH "/sys/class/fc_host/"
-# define SYSFS_SCSI_HOST_PATH "/sys/class/scsi_host/"
+# define SYSFS_FC_HOST_PATH "/sys/class/fc_host"
+# define SYSFS_SCSI_HOST_PATH "/sys/class/scsi_host"
/* virReadSCSIUniqueId:
* @sysfs_prefix: "scsi_host" sysfs path, defaults to SYSFS_SCSI_HOST_PATH
--
2.5.5