summaryrefslogtreecommitdiff
path: root/mysys/my_symlink.c
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-01-18 03:49:39 +0200
committermonty@mysql.com <>2005-01-18 03:49:39 +0200
commite5b788146af4fd59606245a181659fb84575bcab (patch)
treeae1097a49c50db2ee49f069a0d82f0b3ae19e2d0 /mysys/my_symlink.c
parentfd3d976f641b12120a44a3ea5b2a3a20ca6dd568 (diff)
downloadmariadb-git-e5b788146af4fd59606245a181659fb84575bcab.tar.gz
Fixed new bug that caused symlink test to fail
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 */
}