mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
udev: accept lines which have only PROGRAM=
As PROGRAM= may cause side effect, and users may expect that.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
afb30c9fb6
commit
9c69cd7ec0
@@ -502,7 +502,7 @@ static int rule_line_add_token(UdevRuleLine *rule_line, UdevRuleTokenType type,
|
||||
SET_FLAG(rule_line->type, LINE_HAS_DEVLINK, true);
|
||||
|
||||
else if (token->type >= _TK_A_MIN ||
|
||||
IN_SET(token->type,
|
||||
IN_SET(token->type, TK_M_PROGRAM,
|
||||
TK_M_IMPORT_FILE, TK_M_IMPORT_PROGRAM, TK_M_IMPORT_BUILTIN,
|
||||
TK_M_IMPORT_DB, TK_M_IMPORT_CMDLINE, TK_M_IMPORT_PARENT))
|
||||
SET_FLAG(rule_line->type, LINE_UPDATE_SOMETHING, true);
|
||||
|
||||
Reference in New Issue
Block a user