parted_print patch!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



parted flags printing fix. for parted-1.7.0
http://www.gnu.org/software/parted/
- Harshavardhana
--- parted.c	2006-05-15 15:39:26.000000000 +0530
+++ /root/parted-1.7.0-h/parted/parted.c	2006-07-26 00:34:02.356727203 +0530
@@ -1104,7 +1104,6 @@ partition_print_flags (PedPartition* par
                                 res = _res;
                                 strncat (res, ", ", 2);
                         }
-
                         name = _(ped_partition_flag_get_name (flag));
                         _res = res;
                         ped_realloc (&_res, strlen (res) + 1
@@ -1112,8 +1111,10 @@ partition_print_flags (PedPartition* par
                         res = _res;
                         strncat (res, name, 21);
                 }
-        }
 
+        }
+	if (first_flag)
+	  strncat (res, "* ", 2);
         return res;
 }
 

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux