summaryrefslogtreecommitdiff
path: root/mysys/my_symlink.c
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-07-01 15:49:32 +0300
committerunknown <monty@mashka.mysql.fi>2003-07-01 15:49:32 +0300
commit14c8a0e536b6326a4ba759ba30377e8a9654b513 (patch)
treebae354dc2e20ca3c0b40b1b4c4625e5c52d4ea00 /mysys/my_symlink.c
parent48272222a7e4013073f51825f996b2c979f29b6a (diff)
downloadmariadb-git-14c8a0e536b6326a4ba759ba30377e8a9654b513.tar.gz
Fix needed to support MERGE tables in different databases
mysql-test/r/merge.result: Test of MERGE table patch mysql-test/t/merge.test: Test of MERGE table patch
Diffstat (limited to 'mysys/my_symlink.c')
-rw-r--r--mysys/my_symlink.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mysys/my_symlink.c b/mysys/my_symlink.c
index abef0096e28..b9468d42cfc 100644
--- a/mysys/my_symlink.c
+++ b/mysys/my_symlink.c
@@ -123,20 +123,22 @@ int my_realpath(char *to, const char *filename,
}
else
{
- /* Realpath didn't work; Use original name */
+ /*
+ Realpath didn't work; Use my_load_path() which is a poor substitute
+ original name but will at least be able to resolve paths that starts
+ with '.'.
+ */
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
- if (to != filename)
- strmov(to,filename);
+ my_load_path(to, filename, NullS);
result= -1;
}
}
DBUG_RETURN(result);
#else
- if (to != filename)
- strmov(to,filename);
+ my_load_path(to, filename, NullS);
return 0;
#endif
}