libbb: get_uidgid() always called with allow_numeric=1
function old new delta xget_uidgid 30 25 -5 make_device 2188 2183 -5 main 797 792 -5 get_uidgid 240 225 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -400,7 +400,7 @@ static void parse_next_rule(void)
|
||||
}
|
||||
|
||||
/* 2nd field: uid:gid - device ownership */
|
||||
if (get_uidgid(&G.cur_rule.ugid, tokens[1], /*allow_numeric:*/ 1) == 0) {
|
||||
if (get_uidgid(&G.cur_rule.ugid, tokens[1]) == 0) {
|
||||
bb_error_msg("unknown user/group '%s' on line %d", tokens[1], G.parser->lineno);
|
||||
goto next_rule;
|
||||
}
|
||||
|
Reference in New Issue
Block a user