diff options
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 2451cca05..3c4540cfb 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -181,7 +181,8 @@ static void make_device(char *path, int delete) | |||
181 | * the rest of fields unless keep_matching == 1 */ | 181 | * the rest of fields unless keep_matching == 1 */ |
182 | 182 | ||
183 | /* 2nd field: uid:gid - device ownership */ | 183 | /* 2nd field: uid:gid - device ownership */ |
184 | parse_chown_usergroup_or_die(&ugid, tokens[1]); | 184 | if (get_uidgid(&ugid, tokens[1], 1) == 0) |
185 | bb_error_msg("unknown user/group %s", tokens[1]); | ||
185 | 186 | ||
186 | /* 3rd field: mode - device permissions */ | 187 | /* 3rd field: mode - device permissions */ |
187 | mode = strtoul(tokens[2], NULL, 8); | 188 | mode = strtoul(tokens[2], NULL, 8); |