From: Richard Jones Date: Fri, 21 May 2010 13:51:29 +0000 (+0100) Subject: fish: Fix '-N part' disk partition type sub-option. X-Git-Tag: 1.3.14~10 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=48a216a06d6fdab3c8292c383a37cd990c0bf939;p=libguestfs.git fish: Fix '-N part' disk partition type sub-option. --- diff --git a/fish/prep.c b/fish/prep.c index 6fe4ba9..7186622 100644 --- a/fish/prep.c +++ b/fish/prep.c @@ -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)); }