| 2159 | |
| 2160 | |
| 2161 | static char *get_relative_path(const char *path) |
| 2162 | { |
| 2163 | if (test_if_hard_path(path) && |
| 2164 | is_prefix(path,DEFAULT_MYSQL_HOME) && |
| 2165 | strcmp(DEFAULT_MYSQL_HOME,FN_ROOTDIR)) |
| 2166 | { |
| 2167 | path+=(uint) strlen(DEFAULT_MYSQL_HOME); |
| 2168 | while (*path == FN_LIBCHAR || *path == FN_LIBCHAR2) |
| 2169 | path++; |
| 2170 | } |
| 2171 | return (char*) path; |
| 2172 | } |
| 2173 | |
| 2174 | |
| 2175 | /** |
no test coverage detected