summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 16:13:20 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 16:13:20 +0200
commit4699591268012128de457f172963a51ae1c681d6 (patch)
tree6553606fd73ff8b11ea2e17e7d4296548db418a1 /src/ntfs_dir.c
parentea952b0cc9d7a732916fc37db13383a0ae31faf7 (diff)
TestDisk, Advanced, List will now always display files or a warning message
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index c5e87aa..d416cea 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -458,7 +458,7 @@ static void dir_partition_ntfs_close(dir_data_t *dir_data)
}
#endif
-int dir_partition_ntfs_init(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const int verbose)
+dir_partition_t dir_partition_ntfs_init(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const int verbose)
{
#if defined(HAVE_LIBNTFS) || defined(HAVE_LIBNTFS3G)
struct ntfs_device *dev;
@@ -500,7 +500,7 @@ int dir_partition_ntfs_init(disk_t *disk_car, const partition_t *partition, dir_
if (!vol) {
free(my_data);
ntfs_device_free(dev);
- return -1;
+ return DIR_PART_EIO;
}
if (vol->flags & VOLUME_IS_DIRTY) {
log_warning("NTFS Volume is dirty.\n");
@@ -528,9 +528,9 @@ int dir_partition_ntfs_init(disk_t *disk_car, const partition_t *partition, dir_
dir_data->local_dir=NULL;
dir_data->private_dir_data=ls;
}
- return 0;
+ return DIR_PART_OK;
#else
- return -2;
+ return DIR_PART_ENOSYS;
#endif
}