NTFS listing: return the error message when ntfs_readdir() failed.
This commit is contained in:
parent
f71504c2fd
commit
eb3ea9a804
1 changed files with 2 additions and 1 deletions
|
@ -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(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
|
||||
|
|
Loading…
Reference in a new issue