]> sourceware.org Git - lvm2.git/commitdiff
Do not fail lvm_init() if init_logging() generates an errno.
authorDave Wysochanski <dwysocha@redhat.com>
Tue, 1 Jun 2010 21:46:29 +0000 (21:46 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Tue, 1 Jun 2010 21:46:29 +0000 (21:46 +0000)
Revert to original behavior of lvm commands if init_logging() generated an
errno.  Fixes rhbz 592967.

lib/commands/toolcontext.c

index 890da3ec5e0f41a60de26010ed17b244d60085d6..33e682b0d1b883d85d480a0bcb329f5ed29a19ba 100644 (file)
@@ -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)
This page took 0.043327 seconds and 5 git commands to generate.