* util/grub-mkimage.c (main): Explicitely flush and sync the output

before closing to ensure that it will be readable by grub-setup.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-05-09 16:27:09 +02:00
1 parent 072b5d315a
commit ea75312f31
2 files changed
+7

No files matched your search

+2
View File
@@ -1609,6 +1609,8 @@ main (int argc, char *argv[])
argv + optind, memdisk, config,
image_target, note, comp);
fflush (fp);
fsync (fileno (fp));
fclose (fp);
if (dir)