Skip to contentSkip to conversation

LVM2/lib/commands toolcontext.c

PATCH [email protected] 1 participant 1 message Jun 1, 2010

lore
Share & tools
lore
#0 lore raw

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

lib/commands/toolcontext.c +1 -0
@@ -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)