summaryrefslogtreecommitdiff
path: root/mysys/my_symlink.c
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-01-18 03:49:39 +0200
committerunknown <monty@mysql.com>2005-01-18 03:49:39 +0200
commit96f64b4440daa411a887ded45d5cee1daca99360 (patch)
treeae1097a49c50db2ee49f069a0d82f0b3ae19e2d0 /mysys/my_symlink.c
parent8f04aaae8750dd11688f6063fbaca703a58a9dba (diff)
downloadmariadb-git-96f64b4440daa411a887ded45d5cee1daca99360.tar.gz
Fixed new bug that caused symlink test to fail
mysys/my_symlink.c: More debugging
Diffstat (limited to 'mysys/my_symlink.c')
-rw-r--r--mysys/my_symlink.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mysys/my_symlink.c b/mysys/my_symlink.c
index 045802c5e61..7be3fcd36f0 100644
--- a/mysys/my_symlink.c
+++ b/mysys/my_symlink.c
@@ -26,9 +26,11 @@
/*
Reads the content of a symbolic link
If the file is not a symbolic link, return the original file name in to.
- Returns: 0 if table was a symlink,
- 1 if table was a normal file
- -1 on error.
+
+ RETURN
+ 0 If filename was a symlink, (to will be set to value of symlink)
+ 1 If filename was a normal file (to will be set to filename)
+ -1 on error.
*/
int my_readlink(char *to, const char *filename, myf MyFlags)
@@ -58,6 +60,7 @@ int my_readlink(char *to, const char *filename, myf MyFlags)
}
else
to[length]=0;
+ DBUG_PRINT("exit" ,("result: %d", result));
DBUG_RETURN(result);
#endif /* HAVE_READLINK */
}