mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
87d9406725
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. |
||
---|---|---|
.. | ||
.exported_symbols | ||
Doxyfile | ||
liblvm2app.pc.in | ||
lvm2app.h | ||
lvm_base.c | ||
lvm_lv.c | ||
lvm_misc.c | ||
lvm_misc.h | ||
lvm_prop_fields.h | ||
lvm_prop.c | ||
lvm_prop.h | ||
lvm_pv.c | ||
lvm_vg.c | ||
Makefile.in |