diff options
author | Michael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com> | 2017-08-11 16:48:23 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-08-13 13:28:31 +0200 |
commit | 42865ef46fc71b94b8e2289a06e131b4e7207d58 (patch) | |
tree | 6c1f641ae3c90b11be0b0dce15c5127bdebde7ad /sys-boot | |
parent | games-fps/quake3: remove unused patch (diff) | |
download | gentoo-42865ef46fc71b94b8e2289a06e131b4e7207d58.tar.gz gentoo-42865ef46fc71b94b8e2289a06e131b4e7207d58.tar.bz2 gentoo-42865ef46fc71b94b8e2289a06e131b4e7207d58.zip |
sys-boot/efibootmgr: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/5390
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch b/sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch deleted file mode 100644 index 2c769db23047..000000000000 --- a/sys-boot/efibootmgr/files/efibootmgr-error-reporting.patch +++ /dev/null @@ -1,40 +0,0 @@ -@@ -, +, @@ ---- - src/lib/efivars_sysfs.c | 16 +++++++++++++--- - 1 files changed, 13 insertions(+), 3 deletions(-) ---- a/src/lib/efivars_sysfs.c -+++ a/src/lib/efivars_sysfs.c -@@ -66,6 +66,7 @@ static efi_status_t - sysfs_write_variable(const char *filename, efi_variable_t *var) - { - int fd; -+ int rc = EFI_SUCCESS; - size_t writesize; - char buffer[PATH_MAX+40]; - -@@ -77,12 +78,21 @@ sysfs_write_variable(const char *filename, efi_variable_t *var) - return EFI_INVALID_PARAMETER; - } - writesize = write(fd, var, sizeof(*var)); -+ if (writesize == -1) { -+ if (errno == -ENOSPC) -+ rc = EFI_OUT_OF_RESOURCES; -+ else -+ rc = EFI_INVALID_PARAMETER; -+ goto out; -+ } - if (writesize != sizeof(*var)) { -- close(fd); -- return EFI_INVALID_PARAMETER; -+ rc = EFI_INVALID_PARAMETER; - } -+out: -+ if (rc != EFI_SUCCESS) -+ fprintf(stderr, "Failed to write variable: %s\n", strerror(errno)); - close(fd); -- return EFI_SUCCESS; -+ return rc; - } - - --- |