Просмотр исходного кода

Merge trunk revision 2654:
r2654 | sdake | 2010-02-04 14:36:21 -0700 (Thu, 04 Feb 2010) | 2 lines

Merge of Dejan's on=yes patch for the config parser options to ease migration.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2701 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 лет назад
Родитель
Сommit
ee0e85dea9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      exec/mainconfig.c

+ 2 - 2
exec/mainconfig.c

@@ -279,7 +279,7 @@ static int corosync_main_config_log_destination_set (
 
 		mode = logsys_config_mode_get (subsys);
 
-		if (strcmp (value, "yes") == 0) {
+		if (strcmp (value, "yes") == 0 || strcmp (value, "on") == 0) {
 			mode |= mode_mask;
 			if (logsys_config_mode_set(subsys, mode) < 0) {
 				sprintf (formatted_error_reason, "unable to set mode %s", objdb_key);
@@ -287,7 +287,7 @@ static int corosync_main_config_log_destination_set (
 				return -1;
 			}
 		} else
-		if (strcmp (value, "no") == 0) {
+		if (strcmp (value, "no") == 0 || strcmp (value, "off") == 0) {
 			mode &= ~mode_mask;
 			if (logsys_config_mode_set(subsys, mode) < 0) {
 				sprintf (formatted_error_reason, "unable to unset mode %s", objdb_key);