summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-18 20:16:07 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-18 20:16:07 +0100
commit2a87b867e26e5764338b134ee0701c8fa5da93e1 (patch)
treec868c895a0c4cc5f4c14c91ce10660193da4e33a /src/intrf.c
parent66d4eff0c35d101e390fda3705b70d0d4de12e6d (diff)
PhotoRec: Don't marked as D(eleted) an entry (ie. whole disk) that is not a partition
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intrf.c b/src/intrf.c
index 1082316..06b6983 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -206,6 +206,11 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
case STATUS_DELETED: status='D'; break;
default: status=' '; break;
}
+ /* Don't marked as D(eleted) an entry that is not a partition */
+ if((newline&AFF_PART_ORDER)==AFF_PART_ORDER &&
+ partition->order==NO_ORDER &&
+ partition->status==STATUS_DELETED)
+ status=' ';
}
pos+=snprintf(&msg[pos],sizeof(msg)-pos-1,"%c", status);
if(arch->get_partition_typename(partition)!=NULL)