diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-02 16:33:10 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-02 16:33:10 +0200 |
| commit | aa0a12d5495a9cc8612e026ea5787eee4b019095 (patch) | |
| tree | 0b70c0dc4b8d3b5c1f890c6a905b231ec08c99c7 | |
| parent | 1dd6cf867754030223fadd0f4d959039f713bfb1 (diff) | |
| download | busybox-w32-aa0a12d5495a9cc8612e026ea5787eee4b019095.tar.gz busybox-w32-aa0a12d5495a9cc8612e026ea5787eee4b019095.tar.bz2 busybox-w32-aa0a12d5495a9cc8612e026ea5787eee4b019095.zip | |
mdev: do not exit if user:group parse failed. closes bug 309.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -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 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) | |||
| 241 | * the rest the line unless keep_matching == 1 */ | 241 | * the rest the line unless keep_matching == 1 */ |
| 242 | 242 | ||
| 243 | /* 2nd field: uid:gid - device ownership */ | 243 | /* 2nd field: uid:gid - device ownership */ |
| 244 | parse_chown_usergroup_or_die(&ugid, tokens[1]); | 244 | if (get_uidgid(&ugid, tokens[1], 1) == 0) |
| 245 | bb_error_msg("unknown user/group %s", tokens[1]); | ||
| 245 | 246 | ||
| 246 | /* 3rd field: mode - device permissions */ | 247 | /* 3rd field: mode - device permissions */ |
| 247 | mode = strtoul(tokens[2], NULL, 8); | 248 | mode = strtoul(tokens[2], NULL, 8); |
