summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-01-15 20:08:53 +0100
committerunknown <serg@serg.mylan>2005-01-15 20:08:53 +0100
commit0d98da70adcfd5f4963c9ba9a898a278f3df7d7f (patch)
treeeebf5221ab19c9759258d50e4f790b4fd70c016b /myisam
parent60c1541524d2cd8877162b3c9f3f98321d06fafd (diff)
downloadmariadb-git-0d98da70adcfd5f4963c9ba9a898a278f3df7d7f.tar.gz
don't ignore errors in readlink
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_open.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c
index 562227d2f03..442bf00b9d3 100644
--- a/myisam/mi_open.c
+++ b/myisam/mi_open.c
@@ -142,9 +142,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
goto err;
}
/* Don't call realpath() if the name can't be a link */
- if (strcmp(name_buff, org_name))
- (void) my_readlink(index_name, org_name, MYF(0));
- else
+ if (strcmp(name_buff, org_name) ||
+ my_readlink(index_name, org_name, MYF(0)) == -1)
(void) strmov(index_name, org_name);
(void) fn_format(data_name,org_name,"",MI_NAME_DEXT,2+4+16);