[lvm-devel] LVM2/lib/commands toolcontext.c

wysochanski at sourceware.org wysochanski at sourceware.org
Tue Jun 1 21:46:29 UTC 2010


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski at sourceware.org	2010-06-01 21:46:29

Modified files:
	lib/commands   : toolcontext.c 

Log message:
	Do not fail lvm_init() if init_logging() generates an errno.
	
	Revert to original behavior of lvm commands if init_logging() generated an
	errno.  Fixes rhbz 592967.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.98&r2=1.99

--- LVM2/lib/commands/toolcontext.c	2010/05/21 12:36:31	1.98
+++ LVM2/lib/commands/toolcontext.c	2010/06/01 21:46:29	1.99
@@ -195,6 +195,7 @@
 	dm_log_with_errno_init(print_log);
 #endif
 	reset_log_duplicated();
+	reset_lvm_errno(1);
 }
 
 static int _process_config(struct cmd_context *cmd)




More information about the lvm-devel mailing list