mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-16 17:27:04 +00:00
Fix logging_daemon config parser code.
Resolves: rhbz#615203 git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2997 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
0fab390ae4
commit
2b253383dc
@ -528,21 +528,25 @@ static int corosync_main_config_read_logging (
|
||||
object_logger_subsys_handle,
|
||||
"name", &value)) {
|
||||
|
||||
if ((strcmp(value, "corosync") == 0) &&
|
||||
(!objdb_get_string (objdb,
|
||||
object_logger_subsys_handle,
|
||||
"subsys", &value))) {
|
||||
|
||||
if (corosync_main_config_set (objdb,
|
||||
object_logger_subsys_handle,
|
||||
value,
|
||||
&error_reason) < 0) {
|
||||
goto parse_error;
|
||||
if (strcmp(value, "corosync") == 0) {
|
||||
if (!objdb_get_string (objdb,
|
||||
object_logger_subsys_handle,
|
||||
"subsys", &value)) {
|
||||
if (corosync_main_config_set (objdb,
|
||||
object_logger_subsys_handle,
|
||||
value,
|
||||
&error_reason) < 0) {
|
||||
goto parse_error;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (corosync_main_config_set (objdb,
|
||||
object_logger_subsys_handle,
|
||||
NULL,
|
||||
&error_reason) < 0) {
|
||||
goto parse_error;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
error_reason = "subsys required for logging_daemon directive";
|
||||
goto parse_error;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user