diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-02-18 10:01:31 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-27 12:35:10 +0100 |
commit | 3cba74e032050b126eaf1fd27072b1afaeef79b3 (patch) | |
tree | 2a38e1a5224f7917d047f97b7631151eadd6d224 /mysys | |
parent | 924a81a548994bd61e9b8ea662bdb64ef1c12ea0 (diff) | |
download | mariadb-git-3cba74e032050b126eaf1fd27072b1afaeef79b3.tar.gz |
cleanup: fn_format, remove dead code
my_realpath() ignores MY_xxx flags anyway
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_format.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mysys/mf_format.c b/mysys/mf_format.c index d20ce882459..996fee68bd1 100644 --- a/mysys/mf_format.c +++ b/mysys/mf_format.c @@ -97,13 +97,8 @@ char * fn_format(char * to, const char *name, const char *dir, pos=strmake(strmov(to,dev),name,length); (void) strmov(pos,ext); /* Don't convert extension */ } - /* - If MY_RETURN_REAL_PATH and MY_RESOLVE_SYMLINK is given, only do - realpath if the file is a symbolic link - */ if (flag & MY_RETURN_REAL_PATH) - (void) my_realpath(to, to, MYF(flag & MY_RESOLVE_SYMLINKS ? - MY_RESOLVE_LINK: 0)); + (void) my_realpath(to, to, MYF(0)); else if (flag & MY_RESOLVE_SYMLINKS) { strmov(buff,to); |