mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
util: Fix regression introduced by commit 4360a098441
Which refactored the old code, and introduced new helper virIsCapableVport, but the path for checking with access() is not correctly constructed.
This commit is contained in:
parent
b76284afb1
commit
e106c0112a
@ -1734,7 +1734,7 @@ virIsCapableVport(const char *sysfs_prefix,
|
||||
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) {
|
||||
@ -1743,7 +1743,7 @@ virIsCapableVport(const char *sysfs_prefix,
|
||||
}
|
||||
|
||||
if (virAsprintf(&scsi_host_path,
|
||||
"%shost%d%s",
|
||||
"%shost%d/%s",
|
||||
sysfs_prefix ? sysfs_prefix : SYSFS_SCSI_HOST_PATH,
|
||||
host,
|
||||
"vport_create") < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user