1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/liblvm
David Teigland 87d9406725 lib: fix init error handling
When setting up a toolcontext, the lib init function
was detecting an error when there was none, and then
it was returning an incompletely initialized cmd struct
instead of NULL.  The effect was that the lib would try
to use the uninitialized cmd struct and segfault.
This would happen if a non-fatal error occurred during
cmd setup, e.g. user permission failed on lvmetad socket,
causing cmd to fall back to scanning and not use lvmetad.

The only real error condition is when create_toolcontext
returns NULL.  If cmd is returned, the lib can use it.
2016-05-12 13:07:52 -05:00
..
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
Doxyfile Add Doxygen file for lvm2app to generate documentation from lvm2app.h. 2010-02-24 18:16:54 +00:00
liblvm2app.pc.in configure: add --enable-blkid_wiping 2013-11-27 15:48:16 +01:00
lvm2app.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_base.c lib: fix init error handling 2016-05-12 13:07:52 -05:00
lvm_lv.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_misc.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_misc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_prop_fields.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_prop.c redefine pvcreate structs 2016-02-25 09:14:10 -06:00
lvm_prop.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm_pv.c redefine pvcreate structs 2016-02-25 09:14:10 -06:00
lvm_vg.c metadata: also look at historical LVs when checking LV name availability 2016-03-03 13:50:59 +01:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00