add back ACCEPT_GLAGS and active flag check, pointed out by cedric
add back ACCEPT_GLAGS and active flag check, pointed out by cedric

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars