In patch for below problem is bug, which can cause, that only last line
in config file regarding to log destinations, is really applied.
Attached is patch, which fixes that.
Regards,
Honza
Jan Friesse napsal(a):
Releated to https://bugzilla.redhat.com/show_bug.cgi?id=549374.
This patch:
- allows to have some spaces before #
- make function which parses log destinations (remove code duplicity)
- clarify man page
Regards,
Honza
diff --git a/trunk/exec/mainconfig.c b/trunk/exec/mainconfig.c
index c35ba72..99dc952 100644
--- a/trunk/exec/mainconfig.c
+++ b/trunk/exec/mainconfig.c
@@ -277,6 +277,8 @@ static int corosync_main_config_log_destination_set (
objdb_key, replacement);
}
+ mode = logsys_config_mode_get (subsys);
+
if (strcmp (value, "yes") == 0) {
mode |= mode_mask;
if (logsys_config_mode_set(subsys, mode) < 0) {
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais