diff options
author | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-02-09 17:16:33 +0600 |
---|---|---|
committer | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-02-09 17:16:33 +0600 |
commit | 1cd5e6d6ae1e91bf82aa0ea068c7d99428c88e75 (patch) | |
tree | 4bd48d4b241eee84c37d01384457a75b6df51e46 /client/readline.cc | |
parent | 5a19e06804361688f417473da36eb4934071f832 (diff) | |
parent | 784e74235ae3c43bf5616198227412bc856d8bbc (diff) | |
download | mariadb-git-1cd5e6d6ae1e91bf82aa0ea068c7d99428c88e75.tar.gz |
Automerge from mysql-5.1 for follow-up bug#57450.
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 c4bb4ab53f6..f6d3d1295f1 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)))) |