]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix error handling in virSecurityManagerGetMountOptions
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Nov 2012 14:11:35 +0000 (14:11 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 27 Nov 2012 16:45:04 +0000 (16:45 +0000)
commit3f6470f7532eecdca5687a2dbbc5e25610d8030b
treeb8178f31e89e945bac0cfb53b0130b84c947e216
parent1b2ebf950289de6b112e1e279df11030cb1d7ba2
Fix error handling in virSecurityManagerGetMountOptions

The impls of virSecurityManagerGetMountOptions had no way to
return errors, since the code was treating 'NULL' as a success
value. This is somewhat pointless, since the calling code did
not want NULL in the first place and has to translate it into
the empty string "". So change the code so that the impls can
return "" directly, allowing use of NULL for error reporting
once again

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c
src/security/security_apparmor.c
src/security/security_manager.c
src/security/security_nop.c
src/security/security_selinux.c