diff options
-rw-r--r-- | src/msdos.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msdos.c b/src/msdos.c index 24edf9c59dc..d43ce1ac798 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -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); |