1 |
commit: 42865ef46fc71b94b8e2289a06e131b4e7207d58 |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 11 14:48:23 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 13 11:28:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42865ef4 |
7 |
|
8 |
sys-boot/efibootmgr: remove unused patch |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/5390 |
11 |
|
12 |
.../files/efibootmgr-error-reporting.patch | 40 ---------------------- |
13 |
1 file changed, 40 deletions(-) |
14 |
|
15 |
diff --git a/sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch b/sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch |
16 |
deleted file mode 100644 |
17 |
index 2c769db2304..00000000000 |
18 |
--- a/sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch |
19 |
+++ /dev/null |
20 |
@@ -1,40 +0,0 @@ |
21 |
-@@ -, +, @@ |
22 |
---- |
23 |
- src/lib/efivars_sysfs.c | 16 +++++++++++++--- |
24 |
- 1 files changed, 13 insertions(+), 3 deletions(-) |
25 |
---- a/src/lib/efivars_sysfs.c |
26 |
-+++ a/src/lib/efivars_sysfs.c |
27 |
-@@ -66,6 +66,7 @@ static efi_status_t |
28 |
- sysfs_write_variable(const char *filename, efi_variable_t *var) |
29 |
- { |
30 |
- int fd; |
31 |
-+ int rc = EFI_SUCCESS; |
32 |
- size_t writesize; |
33 |
- char buffer[PATH_MAX+40]; |
34 |
- |
35 |
-@@ -77,12 +78,21 @@ sysfs_write_variable(const char *filename, efi_variable_t *var) |
36 |
- return EFI_INVALID_PARAMETER; |
37 |
- } |
38 |
- writesize = write(fd, var, sizeof(*var)); |
39 |
-+ if (writesize == -1) { |
40 |
-+ if (errno == -ENOSPC) |
41 |
-+ rc = EFI_OUT_OF_RESOURCES; |
42 |
-+ else |
43 |
-+ rc = EFI_INVALID_PARAMETER; |
44 |
-+ goto out; |
45 |
-+ } |
46 |
- if (writesize != sizeof(*var)) { |
47 |
-- close(fd); |
48 |
-- return EFI_INVALID_PARAMETER; |
49 |
-+ rc = EFI_INVALID_PARAMETER; |
50 |
- } |
51 |
-+out: |
52 |
-+ if (rc != EFI_SUCCESS) |
53 |
-+ fprintf(stderr, "Failed to write variable: %s\n", strerror(errno)); |
54 |
- close(fd); |
55 |
-- return EFI_SUCCESS; |
56 |
-+ return rc; |
57 |
- } |
58 |
- |
59 |
- |
60 |
--- |