summaryrefslogtreecommitdiffstats
path: root/cpukit
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:09:57 +0100
commit04684cbc436f79339854c4bca22f65bb947f6949 (patch)
treea4f92987df25bf8fecb44b9d0429008dde0e6302 /cpukit
parent69ae534cbb97e0961532cdc7fc5233098d62d886 (diff)
downloadrtems-04684cbc436f79339854c4bca22f65bb947f6949.tar.bz2
dosfs: Fix msdos_find_file_in_directory()
For a filename match the entry must match without anything remaining. Update #2908.
Diffstat (limited to 'cpukit')
-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 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,