Skip to content

Commit

Permalink
Bit test has | instead of & .
Browse files Browse the repository at this point in the history
Dunno what I was thinking that day.

Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Sep 11, 2014
1 parent 0b4be25 commit c1b3ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/efivarfs.c
Expand Up @@ -203,7 +203,7 @@ efivarfs_set_variable(efi_guid_t guid, const char *name, uint8_t *data,

int fd = -1;

if (!access(path, F_OK) && !(attributes | EFI_VARIABLE_APPEND_WRITE)) {
if (!access(path, F_OK) && !(attributes & EFI_VARIABLE_APPEND_WRITE)) {
rc = efi_del_variable(guid, name);
if (rc < 0)
goto err;
Expand Down

0 comments on commit c1b3ef6

Please sign in to comment.