The set_perms function does not check if getgrnam returns a null pointer. This causes the fbd-ledctrl to crash when a non-existent group is passed.