|
|
23d2ea |
From 43f8e295a66a74093a967fb974f2b2b818c8a6ce Mon Sep 17 00:00:00 2001
|
|
|
39700a |
From: Colin Watson <cjwatson@ubuntu.com>
|
|
|
39700a |
Date: Fri, 17 Jan 2014 02:30:52 +0000
|
|
|
23d2ea |
Subject: [PATCH 017/198] freebsd/hostdisk.c is only ever compiled on FreeBSD
|
|
|
39700a |
|
|
|
39700a |
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
|
|
|
39700a |
redundant preprocessor conditional.
|
|
|
39700a |
---
|
|
|
39700a |
ChangeLog | 5 +++++
|
|
|
39700a |
grub-core/osdep/freebsd/hostdisk.c | 2 --
|
|
|
39700a |
2 files changed, 5 insertions(+), 2 deletions(-)
|
|
|
39700a |
|
|
|
39700a |
diff --git a/ChangeLog b/ChangeLog
|
|
|
39700a |
index b445f12..6613b4e 100644
|
|
|
39700a |
--- a/ChangeLog
|
|
|
39700a |
+++ b/ChangeLog
|
|
|
39700a |
@@ -1,3 +1,8 @@
|
|
|
39700a |
+2014-01-17 Colin Watson <cjwatson@debian.org>
|
|
|
39700a |
+
|
|
|
39700a |
+ * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
|
|
|
39700a |
+ redundant preprocessor conditional.
|
|
|
39700a |
+
|
|
|
39700a |
2014-01-08 Colin Watson <cjwatson@ubuntu.com>
|
|
|
39700a |
|
|
|
39700a |
* Makefile.util.def (grub-macbless): Change mansection to 8.
|
|
|
39700a |
diff --git a/grub-core/osdep/freebsd/hostdisk.c b/grub-core/osdep/freebsd/hostdisk.c
|
|
|
39700a |
index bd5fddb..eb202dc 100644
|
|
|
39700a |
--- a/grub-core/osdep/freebsd/hostdisk.c
|
|
|
39700a |
+++ b/grub-core/osdep/freebsd/hostdisk.c
|
|
|
39700a |
@@ -108,7 +108,6 @@ grub_util_fd_open (const char *os_dev, int flags)
|
|
|
39700a |
|
|
|
39700a |
ret = open (os_dev, flags, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
|
|
|
39700a |
|
|
|
39700a |
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
|
39700a |
if (! (sysctl_oldflags & 0x10)
|
|
|
39700a |
&& sysctlbyname ("kern.geom.debugflags", NULL , 0, &sysctl_oldflags, sysctl_size))
|
|
|
39700a |
{
|
|
|
39700a |
@@ -116,7 +115,6 @@ grub_util_fd_open (const char *os_dev, int flags)
|
|
|
39700a |
close (ret);
|
|
|
39700a |
return GRUB_UTIL_FD_INVALID;
|
|
|
39700a |
}
|
|
|
39700a |
-#endif
|
|
|
39700a |
|
|
|
39700a |
return ret;
|
|
|
39700a |
}
|
|
|
39700a |
--
|
|
|
23d2ea |
2.7.4
|
|
|
39700a |
|