summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/config.Y9
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 7b51cf72..5abaca52 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -1146,6 +1146,15 @@ cmd:
| UNSET '(' dynamic_attr ')' ';' {
$$ = f_new_inst(FI_EA_UNSET, $3);
}
+ | UNSET '(' symbol_known ')' ';' {
+ switch ($3->class) {
+ case SYM_ATTRIBUTE:
+ $$ = f_new_inst(FI_EA_UNSET, *$3->attribute);
+ break;
+ default:
+ cf_error("Can't unset symbol %s", $3->name);
+ }
+ }
| break_command var_list_r ';' {
$$ = f_print($2, !!$2, $1);
}