diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-13 15:13:02 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-14 08:07:22 +0100 |
commit | d9c6542970eb0a7106499e5e43750cca8161d96b (patch) | |
tree | f3d5639875afc9e31036730f0703b9a6d5e63818 /cpukit | |
parent | smptests: Fix warnings (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_misc.c | 2 |
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, |