From aa0a12d5495a9cc8612e026ea5787eee4b019095 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 2 May 2009 16:33:10 +0200 Subject: [PATCH] mdev: do not exit if user:group parse failed. closes bug 309. Signed-off-by: Denys Vlasenko --- util-linux/mdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util-linux/mdev.c b/util-linux/mdev.c index e23828eea..99e487532 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -241,7 +241,8 @@ static void make_device(char *path, int delete) * the rest the line unless keep_matching == 1 */ /* 2nd field: uid:gid - device ownership */ - parse_chown_usergroup_or_die(&ugid, tokens[1]); + if (get_uidgid(&ugid, tokens[1], 1) == 0) + bb_error_msg("unknown user/group %s", tokens[1]); /* 3rd field: mode - device permissions */ mode = strtoul(tokens[2], NULL, 8);