This patch fixes rhbz#509180 by printing main_config->group rather then group->gr_name (group == NULL)
Regards, Honza
commit eb69c58dfa9889b7a388728916894fd3465a8024 Author: Jan Friesse <[email protected]> Date: Tue Jul 7 11:57:47 2009 +0200 Remove segfault when ais group doesn't exists Fixes rhbz#509180 by printing main_config->group rather then group->gr_name (group == NULL) diff --git a/branches/whitetank/exec/main.c b/branches/whitetank/exec/main.c index 3ee80ee..23d028b 100644 --- a/branches/whitetank/exec/main.c +++ b/branches/whitetank/exec/main.c @@ -236,7 +236,7 @@ static void aisexec_gid_determine (struct main_config *main_config) struct group *group; group = getgrnam (main_config->group); if (group == 0) { - log_printf (LOG_LEVEL_ERROR, "ERROR: The '%s' group is not found in /etc/group, please read the documentation.\n", group->gr_name); + log_printf (LOG_LEVEL_ERROR, "ERROR: The '%s' group is not found in /etc/group, please read the documentation.\n", main_config->group); openais_exit_error (AIS_DONE_GID_DETERMINE); } gid_valid = group->gr_gid;
_______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
