NTFS listing: return the error message when ntfs_readdir() failed.

This commit is contained in:
Christophe Grenier 2015-03-08 10:57:29 +01:00
parent f71504c2fd
commit eb3ea9a804

View file

@ -316,7 +316,8 @@ static int ntfs_dir(disk_t *disk_car, const partition_t *partition, dir_data_t *
if (inode->mrec->flags & MFT_RECORD_IS_DIRECTORY) { if (inode->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
if(ntfs_readdir(inode, &pos, ls, (ntfs_filldir_t)ntfs_td_list_entry)<0) if(ntfs_readdir(inode, &pos, ls, (ntfs_filldir_t)ntfs_td_list_entry)<0)
{ {
log_error("ntfs_readdir failed for cluster %lu\n", cluster); log_error("ntfs_readdir failed for cluster %lu: %s\n", cluster,
strerror(errno));
} }
} }
else else