From: Yu Watanabe Date: Sat, 29 Jun 2019 20:33:53 +0000 (+0900) Subject: udev: accept lines which have only PROGRAM= X-Git-Tag: v243-rc1~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c69cd7ec02f9cca3fdb313beb992ae8ea16e8e4;p=thirdparty%2Fsystemd.git udev: accept lines which have only PROGRAM= As PROGRAM= may cause side effect, and users may expect that. --- diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index bbba2b49d28..303594fa51e 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -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);