FAT: allow listing of deleted directory

This commit is contained in:
Christophe Grenier 2014-12-06 13:51:44 +01:00
parent 117c387da8
commit b06692ccf8

View file

@ -342,7 +342,7 @@ static int fat_dir(disk_t *disk_car, const partition_t *partition, dir_data_t *d
} }
if(get_next_cluster(disk_car, partition, partition->upart_type, le16(fat_header->reserved), cluster)==0) if(get_next_cluster(disk_car, partition, partition->upart_type, le16(fat_header->reserved), cluster)==0)
{ {
return 0; log_warning("FAT: Directory entry is marked as free.\n");
} }
{ {
const unsigned int cluster_size=fat_header->sectors_per_cluster * fat_sector_size(fat_header); const unsigned int cluster_size=fat_header->sectors_per_cluster * fat_sector_size(fat_header);