From eb3ea9a804cfc910d8ea70ab39e096b7a608b1a7 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 8 Mar 2015 10:57:29 +0100 Subject: [PATCH] NTFS listing: return the error message when ntfs_readdir() failed. --- src/ntfs_dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c index 4a623b11..0d100593 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