changeset 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 00af2bda43f0
children 6b42357f28f9
files src/msdos.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Thu Jul 29 10:44:27 1999 +0000
+++ b/src/msdos.c	Thu Jul 29 11:01:50 1999 +0000
@@ -2831,7 +2831,9 @@
   *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);