summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-03-08 10:57:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2015-03-08 10:57:29 +0100
commiteb3ea9a804cfc910d8ea70ab39e096b7a608b1a7 (patch)
tree66679b3ee50e3f04a62fe0be9d0ddd27715b452f /src/ntfs_dir.c
parentf71504c2fda87336ac177d57686bfbca22c34167 (diff)
NTFS listing: return the error message when ntfs_readdir() failed.
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 4a623b1..0d10059 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -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