don't ignore errors in readlink
This commit is contained in:
parent
275a9293e4
commit
ef58da5435
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user