summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-02-25 13:47:40 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-02-25 13:47:40 +0100
commite390547a3f698560ec5bc03deca5956ed03b0e69 (patch)
tree8f096b652ccd898ce89ee96665e5600dfce1d522 /src/ntfs_dir.c
parent4d4743073f32df4c4c0cc94bc463db1c971a9f14 (diff)
file undelete for FAT filesystem
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 4921850..54205b3 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -1,7 +1,7 @@
/**
* ntfs_dir.c - Part of the TestDisk project.
*
- * Copyright (c) 2004-2007 Christophe Grenier
+ * Copyright (c) 2004-2008 Christophe Grenier
*
* Original version comes from the Linux-NTFS project.
* Copyright (c) 2003 Lode Leroy
@@ -240,6 +240,7 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
{
file_data_t *new_file=MALLOC(sizeof(*new_file));
memcpy(new_file->name,filename,(MAX_PATH<sizeof(new_file->name)?MAX_PATH:sizeof(new_file->name)));
+ new_file->status=0;
new_file->prev=ls->current_file;
new_file->next=NULL;
new_file->filestat.st_dev=0;