Skip to content

Commit

Permalink
Merge pull request dorimanx#64 from br101/master
Browse files Browse the repository at this point in the history
Don't lookup dos name entries for exfat
  • Loading branch information
dorimanx committed Apr 29, 2015
2 parents 63964d3 + c114c63 commit 3d1810c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exfat_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ s32 ffsGetStat(struct inode *inode, DIR_ENTRY_T *info)
/* XXX this is very bad for exfat cuz name is already included in es.
API should be revised */
p_fs->fs_func->get_uni_name_from_ext_entry(sb, &(fid->dir), fid->entry, uni_name.name);
if (*(uni_name.name) == 0x0)
if (*(uni_name.name) == 0x0 && p_fs->vol_type != EXFAT)
get_uni_name_from_dos_entry(sb, (DOS_DENTRY_T *) ep, &uni_name, 0x1);
nls_uniname_to_cstring(sb, info->Name, &uni_name);

Expand Down Expand Up @@ -1556,7 +1556,7 @@ s32 ffsReadDir(struct inode *inode, DIR_ENTRY_T *dir_entry)

*(uni_name.name) = 0x0;
p_fs->fs_func->get_uni_name_from_ext_entry(sb, &dir, dentry, uni_name.name);
if (*(uni_name.name) == 0x0)
if (*(uni_name.name) == 0x0 && p_fs->vol_type != EXFAT)
get_uni_name_from_dos_entry(sb, (DOS_DENTRY_T *) ep, &uni_name, 0x1);
nls_uniname_to_cstring(sb, dir_entry->Name, &uni_name);
buf_unlock(sb, sector);
Expand Down

0 comments on commit 3d1810c

Please sign in to comment.