and grub_file_close call.
+2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
+ and grub_file_close call.
+
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
Add LZSS Mach-O support (needed for new xnu kernelcache).
}
#else
{
+ grub_file_t file;
/* Now read the core image to determine where the sectors are. */
grub_file_filter_disable_compression ();
file = grub_file_open (core_path_dev);
if (grub_file_read (file, tmp_img, core_size - GRUB_DISK_SECTOR_SIZE)
!= (grub_ssize_t) core_size - GRUB_DISK_SECTOR_SIZE)
grub_util_error ("%s", _("failed to read the rest sectors of the core image"));
+ grub_file_close (file);
}
#endif