mirror of https://github.com/mirror/busybox.git
chown: stop accepting deprecated USER.GROUP syntax, only : separator is allowed
function old new delta parse_chown_usergroup_or_die 115 94 -21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>master
parent
9f262698cc
commit
eba9b33b45
|
@ -93,11 +93,7 @@ void FAST_FUNC parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_gr
|
||||||
u->uid = u->gid = (gid_t)-1L;
|
u->uid = u->gid = (gid_t)-1L;
|
||||||
|
|
||||||
/* Check if there is a group name */
|
/* Check if there is a group name */
|
||||||
group = strchr(user_group, '.'); /* deprecated? */
|
group = strchr(user_group, ':');
|
||||||
if (!group)
|
|
||||||
group = strchr(user_group, ':');
|
|
||||||
else
|
|
||||||
*group = ':'; /* replace '.' with ':' */
|
|
||||||
|
|
||||||
/* Parse "user[:[group]]" */
|
/* Parse "user[:[group]]" */
|
||||||
if (!group) { /* "user" */
|
if (!group) { /* "user" */
|
||||||
|
|
Loading…
Reference in New Issue