summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorDmitry Shulga <Dmitry.Shulga@oracle.com>2011-02-09 17:13:17 +0600
committerDmitry Shulga <Dmitry.Shulga@oracle.com>2011-02-09 17:13:17 +0600
commit960ae6da6a8195d1870e60d6eaf25c326f68b93a (patch)
treef81ebb858b5c30044dbd0ba10fa07d4afea500f4 /client
parent5c10aa1409cb3a7d53d61653667586e93289fb3d (diff)
downloadmariadb-git-960ae6da6a8195d1870e60d6eaf25c326f68b93a.tar.gz
Follow up fix for bug#57450.
batch_readline_init() was modified - make check for type of file for input stream unless target platform is WINDOWS since on this platform S_IFBLK is undefined.
Diffstat (limited to 'client')
-rw-r--r--client/readline.cc2
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))))