From 04684cbc436f79339854c4bca22f65bb947f6949 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 13 Feb 2017 15:13:02 +0100 Subject: dosfs: Fix msdos_find_file_in_directory() For a filename match the entry must match without anything remaining. Update #2908. --- cpukit/libfs/src/dosfs/msdos_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c index 76dff439a9..39f6ca28a4 100644 --- a/cpukit/libfs/src/dosfs/msdos_misc.c +++ b/cpukit/libfs/src/dosfs/msdos_misc.c @@ -1539,7 +1539,7 @@ msdos_find_file_in_directory ( if (lfn_entry || (lfn_checksum != cs)) entry_matched = false; - else { + else if (filename_size_remaining == 0) { filename_matched = true; rc = msdos_on_entry_found ( fs_info, -- cgit v1.2.3