Mercurial > emacs
diff 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 |
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);
