summaryrefslogtreecommitdiff
path: root/mysys/my_symlink.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-02-18 10:10:34 +0100
committerSergei Golubchik <serg@mariadb.org>2017-02-27 12:35:10 +0100
commitc826ac9d539fa66d45afd0ca0d54b2579fcbb797 (patch)
treee84f7e2fd5ac57ca525f07e5c19155667a3fe648 /mysys/my_symlink.c
parent24d8bc707a3d3161229b1cfc94b34dc50473bc59 (diff)
downloadmariadb-git-c826ac9d539fa66d45afd0ca0d54b2579fcbb797.tar.gz
cleanup: mysys_test_invalid_symlink
Remove maria_test_invalid_symlink() and myisam_test_invalid_symlink(), introduce mysys_test_invalid_symlink(). Other engines might need it too
Diffstat (limited to 'mysys/my_symlink.c')
-rw-r--r--mysys/my_symlink.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysys/my_symlink.c b/mysys/my_symlink.c
index b0e910f7ba0..bc01a68263d 100644
--- a/mysys/my_symlink.c
+++ b/mysys/my_symlink.c
@@ -1,5 +1,6 @@
/*
Copyright (c) 2001, 2011, Oracle and/or its affiliates
+ Copyright (c) 2010, 2017, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -23,6 +24,14 @@
#include <sys/stat.h>
#endif
+static int always_valid(const char *filename __attribute__((unused)))
+{
+ return 0;
+}
+
+int (*mysys_test_invalid_symlink)(const char *filename)= always_valid;
+
+
/*
Reads the content of a symbolic link
If the file is not a symbolic link, return the original file name in to.