summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-11-13 23:35:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-11-13 23:35:47 +0100
commit455ed826c8a213979aaa69b3af09181ce2b4706c (patch)
tree4338c17dc162d89c33f67251734af7a30eb6412d /src/ntfs_dir.c
parentff5f9f09896f07758222d8149a36628a1e7c3388 (diff)
IO redirection for alt. superblock/bs is enabled before file listing
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index f374cc3..4921850 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -69,7 +69,6 @@
#include "ntfs.h"
#include "dir.h"
#include "ntfs_dir.h"
-#include "io_redir.h"
#include "ntfs_utl.h"
#include "ntfs_inc.h"
#include "log.h"
@@ -412,8 +411,6 @@ static void dir_partition_ntfs_close(dir_data_t *dir_data)
partition=ls->my_data->partition;
ntfs_umount(ls->vol, FALSE);
free(ls->my_data);
- if(partition->boot_sector!=0)
- io_redir_del_redir(disk_car,partition->part_offset);
#ifdef HAVE_ICONV
if (ls->cd != (iconv_t)(-1))
iconv_close(ls->cd);
@@ -428,8 +425,6 @@ int dir_partition_ntfs_init(disk_t *disk_car, const partition_t *partition, dir_
struct ntfs_device *dev;
my_data_t *my_data=NULL;
ntfs_volume *vol=NULL;
- if(partition->boot_sector!=0)
- io_redir_add_redir(disk_car,partition->part_offset,DEFAULT_SECTOR_SIZE,partition->part_offset+(uint64_t)partition->boot_sector*disk_car->sector_size,NULL);
#ifdef NTFS_LOG_LEVEL_VERBOSE
ntfs_log_set_levels(NTFS_LOG_LEVEL_VERBOSE);
ntfs_log_set_handler(ntfs_log_handler_stderr);
@@ -464,8 +459,6 @@ int dir_partition_ntfs_init(disk_t *disk_car, const partition_t *partition, dir_
#endif
}
if (!vol) {
- if(partition->boot_sector!=0)
- io_redir_del_redir(disk_car,partition->part_offset);
free(my_data);
ntfs_device_free(dev);
return -1;