Re: [libvirt PATCH] util: fix accessibility check for hook directory

2020-07-07 Thread Daniel Henrique Barboza
On 7/7/20 9:14 AM, Ján Tomko wrote: virFileIsAccessible does not return true on accessible directories. Check whether it set EISDIR and only then assume the directory is inaccessible. Return 0 (not found) instead of 1 (found), since the bridge driver taints the network based on this return

[libvirt PATCH] util: fix accessibility check for hook directory

2020-07-07 Thread Ján Tomko
virFileIsAccessible does not return true on accessible directories. Check whether it set EISDIR and only then assume the directory is inaccessible. Return 0 (not found) instead of 1 (found), since the bridge driver taints the network based on this return value, not whether the hook actually ran.