fat write: Fixed a problem with the case of file names when writing files
commit 21a24c3bf3
("fs/fat: fix case for FAT shortnames") made it
possible that get_name() returns file names with some upper cases.
find_directory_entry() must be updated to take this account, and use
case-insensitive functions to compare file names.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:
parent
75db00eea0
commit
2c33b0c7d8
@ -842,8 +842,8 @@ static dir_entry *find_directory_entry(fsdata *mydata, int startsect,
|
||||
|
||||
get_name(dentptr, s_name);
|
||||
|
||||
if (strcmp(filename, s_name)
|
||||
&& strcmp(filename, l_name)) {
|
||||
if (strncasecmp(filename, s_name, sizeof(s_name)) &&
|
||||
strncasecmp(filename, l_name, sizeof(l_name))) {
|
||||
debug("Mismatch: |%s|%s|\n",
|
||||
s_name, l_name);
|
||||
dentptr++;
|
||||
|
Loading…
Reference in New Issue
Block a user