Make sure default privset remains available, fixes various crashes
with default/invalid privsets and rehashing.
This commit is contained in:
parent
6dfa266965
commit
064c191ad2
|
@ -167,6 +167,10 @@ privilegeset_mark_all_illegal(void)
|
|||
{
|
||||
struct PrivilegeSet *set = (struct PrivilegeSet *) iter->data;
|
||||
|
||||
/* the "default" privset is special and must remain available */
|
||||
if (!strcmp(set->name, "default"))
|
||||
continue;
|
||||
|
||||
set->status |= CONF_ILLEGAL;
|
||||
/* but do not free it yet */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue