mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-25 05:31:22 +00:00
Use grub_util_fd_{open,close} rather than {fopen,fclose}.
This commit is contained in:
parent
12c2d335d1
commit
ccfba44655
7
debian/patches/core_in_fs.patch
vendored
7
debian/patches/core_in_fs.patch
vendored
@ -20,12 +20,13 @@ Index: b/util/setup.c
|
||||
goto finish;
|
||||
}
|
||||
|
||||
@@ -619,6 +623,9 @@
|
||||
@@ -619,6 +623,10 @@
|
||||
/* The core image must be put on a filesystem unfortunately. */
|
||||
grub_util_info ("will leave the core image on the filesystem");
|
||||
|
||||
+ fp = fopen (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS, "w");
|
||||
+ fclose (fp);
|
||||
+ fp = grub_util_fd_open (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS,
|
||||
+ GRUB_UTIL_FD_O_WRONLY);
|
||||
+ grub_util_fd_close (fp);
|
||||
+
|
||||
grub_util_biosdisk_flush (root_dev->disk);
|
||||
|
||||
|
@ -623,8 +623,9 @@ unable_to_embed:
|
||||
/* The core image must be put on a filesystem unfortunately. */
|
||||
grub_util_info ("will leave the core image on the filesystem");
|
||||
|
||||
fp = fopen (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS, "w");
|
||||
fclose (fp);
|
||||
fp = grub_util_fd_open (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS,
|
||||
GRUB_UTIL_FD_O_WRONLY);
|
||||
grub_util_fd_close (fp);
|
||||
|
||||
grub_util_biosdisk_flush (root_dev->disk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user