summaryrefslogtreecommitdiff
path: root/mysys/mf_format.c
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-06-04 15:16:26 +0300
committerunknown <monty@hundin.mysql.fi>2001-06-04 15:16:26 +0300
commit5fa38499a6472fd6dc7d52b9d93f3d704ccdcbcf (patch)
treef8b750b6f0a49fa06da6f4e7a3367cda4c94ce97 /mysys/mf_format.c
parent2cf8889f57883e7732b66661117f15605315ddda (diff)
downloadmariadb-git-5fa38499a6472fd6dc7d52b9d93f3d704ccdcbcf.tar.gz
.
Changed usage of sumlink/realpath in fn_format() to be compatbile with old MySQL code mysys/mf_format.c: Changed usage of sumlink/realpath to be compatbile with old MySQL code.
Diffstat (limited to 'mysys/mf_format.c')
-rw-r--r--mysys/mf_format.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mysys/mf_format.c b/mysys/mf_format.c
index ebe6bfbe1e6..f90e646289f 100644
--- a/mysys/mf_format.c
+++ b/mysys/mf_format.c
@@ -96,14 +96,13 @@ my_string fn_format(my_string to, const char *name, const char *dsk,
#endif
(void) strmov(pos,ext); /* Don't convert extension */
}
- if (flag & 16)
+ if (flag & 32)
+ (void) my_realpath(to, to, MYF(flag & 32 ? 0 : MY_RESOLVE_LINK));
+ else if (flag & 16)
{
strmov(buff,to);
- my_readlink(to, buff, MYF(flag & 32 ? 0 : MY_RESOLVE_LINK));
+ (void) my_readlink(to, buff, MYF(0));
}
- else if (flag & 32)
- my_realpath(to, to, MYF(flag & 32 ? 0 : MY_RESOLVE_LINK));
-
DBUG_RETURN (to);
} /* fn_format */