summaryrefslogtreecommitdiff
path: root/include/my_sys.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@mysql.com>2008-07-31 14:42:44 +0500
committerAlexey Botchkov <holyfoot@mysql.com>2008-07-31 14:42:44 +0500
commit1cbc2f7e3a1df747dd2aab1140e904e81a44cc8c (patch)
treef084a889c7143a12d43768c8e0a16cea8f22405d /include/my_sys.h
parent2d590c28257cefaa8d25a2bbdab189e362e1470c (diff)
downloadmariadb-git-1cbc2f7e3a1df747dd2aab1140e904e81a44cc8c.tar.gz
Buq#32167 another privilege bypass with DATA/INDEX DIRECTORY.
test_if_data_home_dir fixed to look into real path. Checks added to mi_open for symlinks into data home directory. per-file messages: include/my_sys.h Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. my_is_symlink interface added mysql-test/r/udf.result test result fixed (not related to #32167) mysys/my_symlink.c my_is_symlink() implementsd my_realpath() now returns the 'realpath' even if a file isn't a symlink
Diffstat (limited to 'include/my_sys.h')
-rw-r--r--include/my_sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index a2b705a0c59..359d3453cf5 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -575,6 +575,7 @@ extern int my_close(File Filedes,myf MyFlags);
extern File my_dup(File file, myf MyFlags);
extern int my_mkdir(const char *dir, int Flags, myf MyFlags);
extern int my_readlink(char *to, const char *filename, myf MyFlags);
+extern int my_is_symlink(const char *filename);
extern int my_realpath(char *to, const char *filename, myf MyFlags);
extern File my_create_with_symlink(const char *linkname, const char *filename,
int createflags, int access_flags,