From 62c85c8951e0ca9a0e8bb25837bb6bc0922db9d7 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 28 Aug 2003 21:27:25 +0300 Subject: [PATCH] Removed restriction not to be able use non regular files. --- extra/my_print_defaults.c | 1 + mysys/default.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/my_print_defaults.c b/extra/my_print_defaults.c index 41c26e73dff..07d6c0ca555 100644 --- a/extra/my_print_defaults.c +++ b/extra/my_print_defaults.c @@ -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); diff --git a/mysys/default.c b/mysys/default.c index 2fadda6a2fe..d938bc4435f 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -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))))