Make use of the new default privset!!

This commit is contained in:
William Pitcock 2008-08-17 08:08:23 -05:00
parent 39a68b5376
commit 49b0375d62

View file

@ -487,13 +487,9 @@ conf_set_privset_privs(void *data)
if (!set)
{
conf_report_error("Warning -- unknown parent privilege set %s for %s; ignored.", yy_privset_extends, conf_cur_block_name);
conf_report_error("Warning -- unknown parent privilege set %s for %s; assuming defaults", yy_privset_extends, conf_cur_block_name);
rb_free(yy_privset_extends);
rb_free(privs);
yy_privset_extends = NULL;
return;
set = privilegeset_get("default");
}
privilegeset_extend(set, conf_cur_block_name != NULL ? conf_cur_block_name : "<unknown>", privs, 0);
@ -634,6 +630,9 @@ static void
conf_set_oper_privset(void *data)
{
yy_oper->privset = privilegeset_get((char *) data);
if (!yy_oper->privset)
yy_oper->privset = privilegeset_get("default");
}
static void