Now, this is surprising. I randomly clicked on that link and I immediately see that the code and the patch has a bug. It only checks the first 8 characters:
- if (gr != NULL && strncmp(gr->gr_name, "operator", 8) == 0)
+ if (gr != NULL && strncmp(gr->gr_name, "_shutdown", 8) == 0)
so it will also match a group named "_shutdow" or "_shutdow1234" because only the first 8 characters matter.A trivial silly mistake like this is... not what I expected considering OpenBSD's reputation for security.