Anonymous avatar Anonymous committed 5fd1a35

Fixed bugs about SIGSEGV when working with busy disk's
user: Christian

Comments (0)

Files changed (3)

+12/29/2008 Christian <mail.kristian@yahoo.it>
+
+	* ui.c: Bug fixed 
+		(http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00011.html)
+	
+	* common.c: Bug fixed
+		(http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00010.html)
+	
 10/23/2008 Christian <mail.kristian@yahoo.it>
 
 	* fdisk.c: Make `do_change_system_type' not case
         if (!*disk) ped_exception_catch ();
         ped_exception_leave_all ();*/
 
-        if (*disk) {
-                if (!_disk_warn_busy (*disk)) {
-                        ped_disk_destroy (*disk);
-                        goto error;
-                }
+        if (*disk) 
+	  {
+	    if (!_disk_warn_busy (*disk)) 
+	      {
+		/* http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00010.html*/
+		/* ped_disk_destroy (*disk); */
+		goto error;
+	      }
                 ped_disk_destroy (*disk);
         }
-	if (!type) {
-        	if (!get_disk_type (_("New disk label type"), &type))
-                	goto error;
-	}
+	if (!type) 
+	  {
+	    if (!get_disk_type (_("New disk label type"), &type))
+	      goto error;
+	  }
 
         *disk = ped_disk_new_fresh (dev, type);
         if (!*disk)
-                goto error;
+	  goto error;
 
         /*if (!ped_disk_commit (*disk))
                 goto error;*/
   
   /* List the specified disk. */
   if (fdisk_list_table)
-    fdisk_do_list_devices(&disk);
-  
+    /* http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00011.html */
+    /* fdisk_do_list_devices(&disk); */
+    fdisk_do_list_devices(disk);
 
   fdisk_print_using_dev (disk->dev);
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.