1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

BUG#24780 workaround for broken installations that depend on using /etc, but were configured differently

This commit is contained in:
df@kahlann.erinye.com
2007-01-09 09:32:56 +01:00
parent 2247682f1e
commit eeb82a8ed5
2 changed files with 7 additions and 0 deletions

View File

@ -432,6 +432,9 @@ sub find_groups
if (-f "@sysconfdir@/my.cnf" && -r "@sysconfdir@/my.cnf")
{
open(MY_CNF, "<@sysconfdir@/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
} elsif (-f "/etc/my.cnf" && -r "/etc/my.cnf")
{
open(MY_CNF, "</etc/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
}
for ($i = 0; ($line = shift @tmp); $i++)
{