comparison src/msdos.c @ 25100:2e3da138463f

(getdefdir): Don't return failure indication when _fixpath sets errno to ENOSYS.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 29 Jul 1999 11:01:50 +0000
parents fc493aad59ad
children 4833aea1f1e7
comparison
equal deleted inserted replaced
25099:00af2bda43f0 25100:2e3da138463f
2829 2829
2830 *p++ = '.'; 2830 *p++ = '.';
2831 *p = '\0'; 2831 *p = '\0';
2832 errno = 0; 2832 errno = 0;
2833 _fixpath (in_path, dst); 2833 _fixpath (in_path, dst);
2834 if (errno) 2834 /* _fixpath can set errno to ENOSYS on non-LFN systems because
2835 it queries the LFN support, so ignore that error. */
2836 if ((errno && errno != ENOSYS) || *dst == '\0')
2835 return 0; 2837 return 0;
2836 2838
2837 msdos_downcase_filename (dst); 2839 msdos_downcase_filename (dst);
2838 2840
2839 errno = e; 2841 errno = e;