Removed restriction not to be able use non regular files.

parent 31b337fe
......@@ -143,6 +143,7 @@ int main(int argc, char **argv)
if (error == 1)
fprintf(stderr, "WARNING: Defaults file '%s' not found!\n",
config_file);
/* This error is not available now. For the future */
if (error == 2)
fprintf(stderr, "WARNING: Defaults file '%s' is not a regular file!\n",
config_file);
......
......@@ -320,8 +320,6 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
name);
return 0;
}
else if ((stat_info.st_mode & S_IFMT) != S_IFREG)
return 2;
}
#endif
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