summaryrefslogtreecommitdiff
path: root/storage/connect/maputil.cpp
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-02-06 15:17:34 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-02-06 15:17:34 +0400
commit22a8fb03db5bdba75110f944b937678f21221fa7 (patch)
tree0900bbfbbc0febccf51c57639f997945dd289593 /storage/connect/maputil.cpp
parent9aa88d50509898042ce4053cc9285bdd9a4944b6 (diff)
downloadmariadb-git-22a8fb03db5bdba75110f944b937678f21221fa7.tar.gz
Introducing functions global_open() and global_fopen() for these purposes:
- Removing duplicate code to generate error message text - In the future they will most likely check secure_file_priv directory. modified: storage/connect/filamdbf.cpp storage/connect/filamfix.cpp storage/connect/filamtxt.cpp storage/connect/filamvct.cpp storage/connect/libdoc.cpp storage/connect/maputil.cpp storage/connect/plgdbsem.h storage/connect/plgdbutl.cpp storage/connect/tabfmt.cpp storage/connect/tabmul.cpp storage/connect/tabxml.cpp storage/connect/xindex.cpp
Diffstat (limited to 'storage/connect/maputil.cpp')
-rw-r--r--storage/connect/maputil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/maputil.cpp b/storage/connect/maputil.cpp
index 6f824e4cdda..d7389d26032 100644
--- a/storage/connect/maputil.cpp
+++ b/storage/connect/maputil.cpp
@@ -141,7 +141,7 @@ HANDLE CreateFileMap(PGLOBAL g, LPCSTR fileName,
} // endswitch
// Try to open the addressed file.
- fd = open(fileName, openMode);
+ fd= global_open(g, MSGID_NONE, fileName, openMode);
if (fd != INVALID_HANDLE_VALUE && mode != MODE_INSERT) {
/* We must know about the size of the file. */