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
commitb3ff72abca83c484f052052bf9ac67dc4a5d630b (patch)
treebae354dc2e20ca3c0b40b1b4c4625e5c52d4ea00 /mysys/my_symlink.c
parentca071e7f76d8dde1d2f39973e1fcf3f76792895d (diff)
downloadmariadb-git-b3ff72abca83c484f052052bf9ac67dc4a5d630b.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
}