diff options
-rw-r--r-- | libpwdgrp/uidgid_get.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libpwdgrp/uidgid_get.c b/libpwdgrp/uidgid_get.c index 283ac78fc..d76eb8298 100644 --- a/libpwdgrp/uidgid_get.c +++ b/libpwdgrp/uidgid_get.c | |||
@@ -93,11 +93,7 @@ void FAST_FUNC parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_gr | |||
93 | u->uid = u->gid = (gid_t)-1L; | 93 | u->uid = u->gid = (gid_t)-1L; |
94 | 94 | ||
95 | /* Check if there is a group name */ | 95 | /* Check if there is a group name */ |
96 | group = strchr(user_group, '.'); /* deprecated? */ | 96 | group = strchr(user_group, ':'); |
97 | if (!group) | ||
98 | group = strchr(user_group, ':'); | ||
99 | else | ||
100 | *group = ':'; /* replace '.' with ':' */ | ||
101 | 97 | ||
102 | /* Parse "user[:[group]]" */ | 98 | /* Parse "user[:[group]]" */ |
103 | if (!group) { /* "user" */ | 99 | if (!group) { /* "user" */ |