Commit ef58da54 authored by serg@serg.mylan's avatar serg@serg.mylan

don't ignore errors in readlink

parent 275a9293
...@@ -142,9 +142,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -142,9 +142,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
goto err; goto err;
} }
/* Don't call realpath() if the name can't be a link */ /* Don't call realpath() if the name can't be a link */
if (strcmp(name_buff, org_name)) if (strcmp(name_buff, org_name) ||
(void) my_readlink(index_name, org_name, MYF(0)); my_readlink(index_name, org_name, MYF(0)) == -1)
else
(void) strmov(index_name, org_name); (void) strmov(index_name, org_name);
(void) fn_format(data_name,org_name,"",MI_NAME_DEXT,2+4+16); (void) fn_format(data_name,org_name,"",MI_NAME_DEXT,2+4+16);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment