Re: [libvirt PATCH 1/8] lxc: fix error value of lxcNodeGetSecurityModel

2021-12-13 Thread Michal Prívozník
On 12/10/21 17:06, Ján Tomko wrote: > When adding the ACL check and caps getter, we assumed that > the default return value is -1, not 0 as usual. > > Fix the return value on error by assigning them explicitly. > > Signed-off-by: Ján Tomko > --- > src/lxc/lxc_driver.c | 8 ++-- > 1 file

[libvirt PATCH 1/8] lxc: fix error value of lxcNodeGetSecurityModel

2021-12-10 Thread Ján Tomko
When adding the ACL check and caps getter, we assumed that the default return value is -1, not 0 as usual. Fix the return value on error by assigning them explicitly. Signed-off-by: Ján Tomko --- src/lxc/lxc_driver.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git