config: Fix bitwise copy-and-pasto for command line items.

The recent change allowing every configuration option to appear on the
command line wrongly used bitwise AND to set a flag.  This patch fixes
the bug by using the proper bitwise OR idiom.

Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Reported-by: Miroslav Lichvar <mlichvar@redhat.com>
Fixes: 4e8dbd8 ("ptp4l: Accept any configuration option as a command line argument.")
master
Richard Cochran 2016-12-13 19:55:39 +01:00
parent 81d97657bf
commit e658982624
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ static enum parser_result parse_item(struct config *cfg,
} }
if (commandline) { if (commandline) {
dst->flags &= CFG_ITEM_LOCKED; dst->flags |= CFG_ITEM_LOCKED;
} }
return PARSED_OK; return PARSED_OK;
} }