Removed restriction not to be able use non regular files.

parent 31b337fe
...@@ -143,6 +143,7 @@ int main(int argc, char **argv) ...@@ -143,6 +143,7 @@ int main(int argc, char **argv)
if (error == 1) if (error == 1)
fprintf(stderr, "WARNING: Defaults file '%s' not found!\n", fprintf(stderr, "WARNING: Defaults file '%s' not found!\n",
config_file); config_file);
/* This error is not available now. For the future */
if (error == 2) if (error == 2)
fprintf(stderr, "WARNING: Defaults file '%s' is not a regular file!\n", fprintf(stderr, "WARNING: Defaults file '%s' is not a regular file!\n",
config_file); config_file);
......
...@@ -320,8 +320,6 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc, ...@@ -320,8 +320,6 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
name); name);
return 0; return 0;
} }
else if ((stat_info.st_mode & S_IFMT) != S_IFREG)
return 2;
} }
#endif #endif
if (!(fp = my_fopen(fn_format(name,name,"","",4),O_RDONLY,MYF(0)))) if (!(fp = my_fopen(fn_format(name,name,"","",4),O_RDONLY,MYF(0))))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment