Skip to content

Instantly share code, notes, and snippets.

@vathpela
Created February 5, 2014 04:58
Show Gist options
  • Save vathpela/8817660 to your computer and use it in GitHub Desktop.
Save vathpela/8817660 to your computer and use it in GitHub Desktop.
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