diff options
author | Tom Rini <trini@konsulko.com> | 2023-08-03 17:45:38 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-03 17:45:38 -0400 |
commit | 989892f5805dc205033c4723bc8e024472564d16 (patch) | |
tree | 9e95ad9c42383955460fc39eb095bcedb333b846 /fs | |
parent | 6cdd4b8108f57252b8849e71aa46e3a2d227c98d (diff) | |
parent | 11158aef8939bb6e54361e4dae3809a9cbe78cff (diff) |
Merge branch '2023-08-03-assorted-fixes'
- More MAINTAINERS file updates, bootstd fixes, a fat fix and debug
message fix
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fat/fat_write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index e2a9913f807..a6294419b8d 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -132,9 +132,9 @@ static int set_name(fat_itr *itr, const char *filename, char *shortname) return period_location; if (*dirent.name == ' ') *dirent.name = '_'; - /* 0xe5 signals a deleted directory entry. Replace it by 0x05. */ - if (*dirent.name == 0xe5) - *dirent.name = 0x05; + /* Substitute character 0xe5 signaling deletetion by character 0x05 */ + if (*dirent.name == DELETED_FLAG) + *dirent.name = aRING; /* If filename and short name are the same, quit. */ sprintf(buf, "%.*s.%.3s", period_location, dirent.name, dirent.ext); |