summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorKaren Langford <karen.langford@oracle.com>2011-07-06 00:56:51 +0200
committerKaren Langford <karen.langford@oracle.com>2011-07-06 00:56:51 +0200
commit8c001894f5a9e8350d621243c60870db6de84566 (patch)
treeeefc26771a8f290ae8b29e9d7ecb41b19010a909 /sql/sql_load.cc
parent986984a314535116e01d212b6ae19c3a0dabc2b8 (diff)
parenta83ac4ceb231ede7b82aaa47af635b393859968e (diff)
downloadmariadb-git-8c001894f5a9e8350d621243c60870db6de84566.tar.gz
Merge from mysql-5.1.58-release
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index 84d355ba2b5..6a0e5fd9133 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -350,21 +350,21 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
#if !defined(__WIN__) && ! defined(__NETWARE__)
MY_STAT stat_info;
- if (!my_stat(name,&stat_info,MYF(MY_WME)))
- DBUG_RETURN(TRUE);
+ if (!my_stat(name, &stat_info, MYF(MY_WME)))
+ DBUG_RETURN(TRUE);
// if we are not in slave thread, the file must be:
if (!thd->slave_thread &&
- !((stat_info.st_mode & S_IROTH) == S_IROTH && // readable by others
- (stat_info.st_mode & S_IFLNK) != S_IFLNK && // and not a symlink
- ((stat_info.st_mode & S_IFREG) == S_IFREG ||
- (stat_info.st_mode & S_IFIFO) == S_IFIFO)))
+ !((stat_info.st_mode & S_IROTH) == S_IROTH && // readable by others
+ (stat_info.st_mode & S_IFLNK) != S_IFLNK && // and not a symlink
+ ((stat_info.st_mode & S_IFREG) == S_IFREG || // and a regular file
+ (stat_info.st_mode & S_IFIFO) == S_IFIFO))) // or FIFO
{
- my_error(ER_TEXTFILE_NOT_READABLE, MYF(0), name);
- DBUG_RETURN(TRUE);
+ my_error(ER_TEXTFILE_NOT_READABLE, MYF(0), name);
+ DBUG_RETURN(TRUE);
}
if ((stat_info.st_mode & S_IFIFO) == S_IFIFO)
- is_fifo = 1;
+ is_fifo= 1;
#endif
if ((file=my_open(name,O_RDONLY,MYF(MY_WME))) < 0)