[lvm-devel] [PATCH 1/2] Do not fail lvm_init() if init_logging() generates an errno.

Dave Wysochanski dwysocha at redhat.com
Tue Jun 1 18:07:56 UTC 2010


Revert to original behavior of lvm commands if init_logging() generated an
errno.  Fixes rhbz 592967.

Signed-off-by: Dave Wysochanski <dwysocha at redhat.com>
---
 lib/commands/toolcontext.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 890da3e..33e682b 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -195,6 +195,7 @@ static void _init_logging(struct cmd_context *cmd)
 	dm_log_with_errno_init(print_log);
 #endif
 	reset_log_duplicated();
+	reset_lvm_errno(1);
 }
 
 static int _process_config(struct cmd_context *cmd)
-- 
1.6.0.6




More information about the lvm-devel mailing list