Removed restriction not to be able use non regular files.
This commit is contained in:
parent
b6d2a6ee09
commit
62c85c8951
@ -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))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user