X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Fappliance.c;h=c6defc0c923461e6f4fee230f0a5d0debfc8da1f;hb=2d2846007d62696185bf367724a65ae8d626fbc2;hp=c7200bd1585f5c7c0076f3ff3f896c028ff6cfe8;hpb=e23a9c8f05e3646feb826d5db36d8656a80a27ab;p=febootstrap.git diff --git a/helper/appliance.c b/helper/appliance.c index c7200bd..c6defc0 100644 --- a/helper/appliance.c +++ b/helper/appliance.c @@ -86,11 +86,11 @@ void create_appliance (char **inputs, int nr_inputs, const char *whitelist, const char *modpath, - const char *initrd) + const char *appliance) { - out_fd = open (initrd, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0644); + out_fd = open (appliance, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0644); if (out_fd == -1) - error (EXIT_FAILURE, errno, "open: %s", initrd); + error (EXIT_FAILURE, errno, "open: %s", appliance); out_offset = 0; iterate_inputs (inputs, nr_inputs); @@ -102,7 +102,7 @@ create_appliance (char **inputs, int nr_inputs, /* Finish off and close output file. */ if (close (out_fd) == -1) - error (EXIT_FAILURE, errno, "close: %s", initrd); + error (EXIT_FAILURE, errno, "close: %s", appliance); } /* Iterate over the inputs to find out what they are, visiting