summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-07-26 23:03:42 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-07-26 23:03:42 +0200
commitd14031f68dca29a186312823b68e2ede63cd222a (patch)
tree0638bf1464dae9c3ee2682207ae27c62d5323bc1 /src/intrf.c
parent90953b97653cefe8c710c4ca186dfc73ca608e5b (diff)
Some partitions weren't marked as D(eleted)
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/intrf.c b/src/intrf.c
index 0488921..4731b5b 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -119,9 +119,6 @@ void screen_buffer_to_log(void)
int get_partition_status(const partition_t *partition)
{
- /* Don't marked as D(eleted) an entry that is not a partition */
- if(partition->order==NO_ORDER && partition->status==STATUS_DELETED)
- return ' ';
switch(partition->status)
{
case STATUS_PRIM: return 'P';
@@ -157,6 +154,10 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
if((newline&AFF_PART_STATUS)==AFF_PART_STATUS)
{
status=get_partition_status(partition);
+ /* 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)