diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-10 12:08:54 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-10 12:08:54 +0200 |
commit | 3ffea7a12beea27c21a95bdebdf0f075ff2d6408 (patch) | |
tree | 25829cbe2d6431f4e4726eaeda803932d7a966ed /client/readline.cc | |
parent | 64184770f0bb7d3d95b03543bd573e7b1e3f13e4 (diff) | |
parent | 7856500b0de0f9c93148e632be44014c1f9c27f3 (diff) | |
download | mariadb-git-3ffea7a12beea27c21a95bdebdf0f075ff2d6408.tar.gz |
merge 5.1->5.1-security
Diffstat (limited to 'client/readline.cc')
-rw-r--r-- | client/readline.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/readline.cc b/client/readline.cc index 9ac9ea5824e..fb8cde577b5 100644 --- a/client/readline.cc +++ b/client/readline.cc @@ -33,10 +33,12 @@ LINE_BUFFER *batch_readline_init(ulong max_size,FILE *file) LINE_BUFFER *line_buff; MY_STAT input_file_stat; +#ifndef __WIN__ if (my_fstat(fileno(file), &input_file_stat, MYF(MY_WME)) || MY_S_ISDIR(input_file_stat.st_mode) || MY_S_ISBLK(input_file_stat.st_mode)) return 0; +#endif if (!(line_buff=(LINE_BUFFER*) my_malloc(sizeof(*line_buff),MYF(MY_WME | MY_ZEROFILL)))) |