summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-13 15:13:02 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-14 08:07:22 +0100
commitd9c6542970eb0a7106499e5e43750cca8161d96b (patch)
treef3d5639875afc9e31036730f0703b9a6d5e63818 /cpukit/libfs
parentsmptests: Fix warnings (diff)
downloadrtems-d9c6542970eb0a7106499e5e43750cca8161d96b.tar.bz2
dosfs: Fix msdos_find_file_in_directory()
For a filename match the entry must match without anything remaining. Close #2908.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r--cpukit/libfs/src/dosfs/msdos_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c
index 125ff9c674..bd65850013 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,