fish: Fix '-N part' disk partition type sub-option.
authorRichard Jones <rjones@redhat.com>
Fri, 21 May 2010 13:51:29 +0000 (14:51 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 21 May 2010 13:51:53 +0000 (14:51 +0100)
fish/prep.c

index 6fe4ba9..7186622 100644 (file)
@@ -268,7 +268,7 @@ prelaunch_part (const char *filename, prep_data *data)
 static void
 postlaunch_part (const char *filename, prep_data *data, const char *device)
 {
-  if (guestfs_part_disk (g, device, data->params[2]) == -1)
+  if (guestfs_part_disk (g, device, data->params[1]) == -1)
     prep_error (data, filename, _("failed to partition disk: %s"),
                 guestfs_last_error (g));
 }