mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
virfirewall: use virFindFileInPath instead of virFileIsExecutable
Following patches will make this change necessary as we will stop detecting the full path during compile time. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a1ea955806
commit
25a8c0ef38
@ -104,7 +104,9 @@ virFirewallValidateBackend(virFirewallBackend backend)
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS(commands); i++) {
|
||||
if (!virFileIsExecutable(commands[i])) {
|
||||
g_autofree char *path = virFindFileInPath(commands[i]);
|
||||
|
||||
if (!path) {
|
||||
virReportSystemError(errno,
|
||||
_("%s not available, firewall backend will not function"),
|
||||
commands[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user