ports/databases/percona55-server/files/patch-mysys_default.c
Alex Dupre c7d5687bb9 - Fix client input validation vulnerability
- Fix my.cnf search path
2008-10-10 18:35:13 +00:00

22 lines
645 B
C

--- mysys/default.c.orig 2008-08-28 17:40:47.000000000 +0200
+++ mysys/default.c 2008-09-16 08:20:23.000000000 +0200
@@ -638,7 +638,7 @@
{
MY_STAT stat_info;
if (!my_stat(name,&stat_info,MYF(0)))
- return 1;
+ return 0;
/*
Ignore world-writable regular files.
This is mainly done to protect us to not read a file created by
@@ -1091,7 +1091,10 @@
#if defined(DEFAULT_SYSCONFDIR)
if (DEFAULT_SYSCONFDIR != "")
+ {
errors += add_directory(alloc, DEFAULT_SYSCONFDIR, dirs);
+ errors += add_directory(alloc, DEFAULT_SYSCONFDIR "/mysql", dirs);
+ }
#endif /* DEFAULT_SYSCONFDIR */
#endif