summaryrefslogtreecommitdiffstats
path: root/src/dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-07-03 21:30:40 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-07-03 21:30:40 +0200
commitae2999e7ca66a6257724cf54c910f0da24b3e090 (patch)
treeef2d07b38c2120a833a818456e2be06c31f4a5ba /src/dir.c
parent7088aaf64a8153e7cd5cc90e3369d9d340aa5736 (diff)
TestDisk: add Undelete in the Advanced menu for FAT and ext2
Diffstat (limited to 'src/dir.c')
-rw-r--r--src/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dir.c b/src/dir.c
index 89ee0bd..4cbf888 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -351,7 +351,8 @@ static long int dir_aff_ncurses(disk_t *disk_car, const partition_t *partition,
return 1;
break;
case 'h':
- dir_data->param^=FLAG_LIST_DELETED;
+ if((dir_data->capabilities&CAPA_LIST_DELETED)!=0)
+ dir_data->param^=FLAG_LIST_DELETED;
return inode;
}
if(dir_list!=NULL)