mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
* grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
windows method on other platforms without good stat as well.
This commit is contained in:
1 parent
effe203677
commit
64db14b0cb
2 files changed
+8
-3
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
|
||||||
|
windows method on other platforms without good stat as well.
|
||||||
|
|
||||||
2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/osdep/linux/getroot.c: Add new btrfs defines.
|
* grub-core/osdep/linux/getroot.c: Add new btrfs defines.
|
||||||
|
|||||||
@@ -398,12 +398,12 @@ static struct grub_disk_dev grub_util_biosdisk_dev =
|
|||||||
static int
|
static int
|
||||||
grub_util_check_file_presence (const char *p)
|
grub_util_check_file_presence (const char *p)
|
||||||
{
|
{
|
||||||
#if defined (__MINGW32__) || defined(__CYGWIN__)
|
#if !GRUB_UTIL_FD_STAT_IS_FUNCTIONAL
|
||||||
HANDLE h;
|
grub_util_fd_t h;
|
||||||
h = grub_util_fd_open (p, GRUB_UTIL_FD_O_RDONLY);
|
h = grub_util_fd_open (p, GRUB_UTIL_FD_O_RDONLY);
|
||||||
if (!GRUB_UTIL_FD_IS_VALID(h))
|
if (!GRUB_UTIL_FD_IS_VALID(h))
|
||||||
return 0;
|
return 0;
|
||||||
CloseHandle (h);
|
grub_util_fd_close (h);
|
||||||
return 1;
|
return 1;
|
||||||
#else
|
#else
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|||||||
Reference in new issue
Block a user