summaryrefslogtreecommitdiffstats
path: root/src/ntfs_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-06 00:29:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-06 00:29:52 +0100
commitf51aa191c2be32b989b4ddb5fee31b8bfd75edf5 (patch)
treebfaf4e746da8d6bd071af09d4d0e5a0ad6a56884 /src/ntfs_adv.c
parent980ff85c3050ff15bf8e473ead40c24dba4b4353 (diff)
"testdisk -lu device" will list the partition with sector unit
Diffstat (limited to 'src/ntfs_adv.c')
-rw-r--r--src/ntfs_adv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ntfs_adv.c b/src/ntfs_adv.c
index 658c9f4..7761325 100644
--- a/src/ntfs_adv.c
+++ b/src/ntfs_adv.c
@@ -70,7 +70,7 @@ static void ntfs_dump_ncurses(disk_t *disk_car, const partition_t *partition, co
wmove(window,4,0);
wprintw(window,"%s",disk_car->description(disk_car));
wmove(window,5,0);
- aff_part(window,AFF_PART_ORDER,disk_car,partition);
+ aff_part(window,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
mvwaddstr(window,6,0, " Rebuild Boot sector Boot sector");
dump2(window, newboot, orgboot, NTFS_SECTOR_SIZE);
delwin(window);
@@ -175,7 +175,7 @@ static void menu_write_ntfs_boot_sector_ncurses(disk_t *disk_car, partition_t *p
wprintw(stdscr,"%s",disk_car->description(disk_car));
mvwaddstr(stdscr,5,0,msg_PART_HEADER_LONG);
wmove(stdscr,6,0);
- aff_part(stdscr,AFF_PART_ORDER,disk_car,partition);
+ aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
wmove(stdscr,8,0);
if(memcmp(newboot,orgboot,NTFS_SECTOR_SIZE))
{
@@ -222,7 +222,7 @@ static void menu_write_ntfs_boot_sector_ncurses(disk_t *disk_car, partition_t *p
wmove(window,4,0);
wprintw(window,"%s",disk_car->description(disk_car));
wmove(window,5,0);
- aff_part(window,AFF_PART_ORDER,disk_car,partition);
+ aff_part(window,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
log_info(" Rebuild Boot sector Boot sector\n");
mvwaddstr(window,6,0, " Rebuild Boot sector Boot sector");
dump2(window, newboot, orgboot, NTFS_SECTOR_SIZE);
@@ -444,7 +444,7 @@ int rebuild_NTFS_BS(disk_t *disk_car, partition_t *partition, const int verbose,
wprintw(stdscr,"%s",disk_car->description(disk_car));
mvwaddstr(stdscr,5,0,msg_PART_HEADER_LONG);
wmove(stdscr,6,0);
- aff_part(stdscr,AFF_PART_ORDER,disk_car,partition);
+ aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
wmove(stdscr,22,0);
wattrset(stdscr, A_REVERSE);
waddstr(stdscr," Stop ");