Which refactored the old code, and introduced new helper
virIsCapableVport, but the path for checking with access() is not
correctly constructed.
int ret = -1;
if (virAsprintf(&fc_host_path,
- "%shost%d%s",
+ "%shost%d/%s",
sysfs_prefix ? sysfs_prefix : SYSFS_FC_HOST_PATH,
host,
"vport_create") < 0) {
}
if (virAsprintf(&scsi_host_path,
- "%shost%d%s",
+ "%shost%d/%s",
sysfs_prefix ? sysfs_prefix : SYSFS_SCSI_HOST_PATH,
host,
"vport_create") < 0) {