Make sure default privset remains available, fixes various crashes

with default/invalid privsets and rehashing.
This commit is contained in:
Jilles Tjoelker 2008-12-27 23:13:48 +01:00
parent 6dfa266965
commit 064c191ad2
1 changed files with 4 additions and 0 deletions

View File

@ -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 */
}