Created
February 5, 2014 04:58
-
-
Save vathpela/8817660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/efivarfs.c b/src/efivarfs.c | |
index 1c2fe04..0cb05ff 100644 | |
--- a/src/efivarfs.c | |
+++ b/src/efivarfs.c | |
@@ -234,6 +234,8 @@ efivarfs_set_variable(efi_guid_t guid, const char *name, uin | |
#if 1 | |
memcpy(buf, &attributes, sizeof (attributes)); | |
memcpy(buf + sizeof (attributes), data, data_size); | |
+ errno = ENOSPC; | |
+ return -1; | |
rc = write(fd, buf, sizeof (attributes) + data_size); | |
#else | |
struct iovec iovs[] = { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment