summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2003-03-10 13:16:59 +0100
committerunknown <serg@serg.mysql.com>2003-03-10 13:16:59 +0100
commit605bfe93ef0ede548ef38a04e6d7f4f56444a132 (patch)
tree8bbd0dd243cbe6ac14223bd1a66d8a651facda50
parenta032dc2712317899efadd6b36909562441eae3d7 (diff)
downloadmariadb-git-605bfe93ef0ede548ef38a04e6d7f4f56444a132.tar.gz
warning added
-rw-r--r--mysys/default.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mysys/default.c b/mysys/default.c
index c9b0704216a..0f8712d3298 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -246,10 +246,14 @@ static my_bool search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
#if !defined(__WIN__) && !defined(OS2)
{
MY_STAT stat_info;
- if (!my_stat(name,&stat_info,MYF(MY_WME)))
+ if (!my_stat(name,&stat_info,MYF(0)))
return 0;
if (stat_info.st_mode & S_IWOTH) /* ignore world-writeable files */
+ {
+ fprintf(stderr, "warning: World-writeable config file %s is ignored\n",
+ name);
return 0;
+ }
}
#endif
if (!(fp = my_fopen(fn_format(name,name,"","",4),O_RDONLY,MYF(0))))