Changes in / [ab9f443:22a8a9b] in mainline
- Location:
- uspace/srv/fs/fat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.c
rab9f443 r22a8a9b 334 334 while (i < count) { 335 335 if ((ch = str_decode(src, &off, STR_NO_LIMIT)) != 0) { 336 if (ascii_check(ch) & IS_D_CHAR(ch))336 if (ascii_check(ch) && IS_D_CHAR(ch)) 337 337 *dst = toupper(ch); 338 338 else -
uspace/srv/fs/fat/fat_directory.c
rab9f443 r22a8a9b 162 162 int rc; 163 163 164 void *data; 165 fat_instance_t *instance; 166 167 rc = fs_instance_get(di->nodep->idx->service_id, &data); 168 assert(rc == EOK); 169 instance = (fat_instance_t *) data; 170 164 171 do { 165 172 rc = fat_directory_get(di, &d); … … 177 184 long_entry_count--; 178 185 if ((FAT_LFN_ORDER(d) == long_entry_count) && 179 186 (checksum == FAT_LFN_CHKSUM(d))) { 180 187 /* Right order! */ 181 188 fat_lfn_get_entry(d, wname, … … 189 196 long_entry = false; 190 197 } 191 } else if (FAT_IS_LFN(d) ) {198 } else if (FAT_IS_LFN(d) && instance->lfn_enabled) { 192 199 /* We found Last long entry! */ 193 200 if (FAT_LFN_COUNT(d) <= FAT_LFN_MAX_COUNT) { … … 308 315 checksum = fat_dentry_chksum(de->name); 309 316 310 rc = fat_directory_seek(di, start_pos +long_entry_count);317 rc = fat_directory_seek(di, start_pos + long_entry_count); 311 318 if (rc != EOK) 312 319 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.