Commit e2ee551e authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(getdefdir): Don't return failure indication when

_fixpath sets errno to ENOSYS.
parent 85688389
......@@ -2831,7 +2831,9 @@ getdefdir (drive, dst)
*p = '\0';
errno = 0;
_fixpath (in_path, dst);
if (errno)
/* _fixpath can set errno to ENOSYS on non-LFN systems because
it queries the LFN support, so ignore that error. */
if ((errno && errno != ENOSYS) || *dst == '\0')
return 0;
msdos_downcase_filename (dst);
......
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