# control instructions for the Debian bug on this subject
tags 533963 patch
user ubuntu-de...@lists.ubuntu.com
usertags 533963 ubuntu-patch karmic
thanks

Hi Anton,

fatresize fails to build against current parted because the ped_free
function has been removed; applications are now expected to use plain
free. See:

  
http://git.debian.org/?p=parted/parted.git;a=commit;h=f7fcc31e0ce072820df58ca4f8810b0f6b038b06

Attached please find a patch to fix this problem.

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]
Index: fatresize.c
===================================================================
RCS file: /cvsroot/fatresize/fatresize/fatresize.c,v
retrieving revision 1.9
diff -p -u -r1.9 fatresize.c
--- fatresize.c	20 Sep 2005 08:34:57 -0000	1.9
+++ fatresize.c	15 Jul 2009 12:07:51 -0000
@@ -320,11 +320,11 @@ partition_warn_busy(PedPartition* part)
 			("Partition %s is being used.  You must unmount it "
 			 "before you modify it with Parted."),
 			path);
-	ped_free(path);
+	free(path);
 	return 0;
     }
 
-    ped_free(path);
+    free(path);
     return 1;
 }
 
@@ -507,8 +507,8 @@ main(int argc, char **argv)
     }
     else if (!ped_unit_parse(def_str, dev, &end, &range_end))
 	return 1;
-    ped_free(old_str);
-    ped_free(def_str);
+    free(old_str);
+    free(def_str);
 
     printd(3, "ped_geometry_duplicate()\n");
     old_geom = ped_geometry_duplicate(&part->geom);

Reply via email to