[git commit] chown: stop accepting deprecated USER.GROUP syntax, only : separator is allowed

Denys Vlasenko vda.linux at googlemail.com
Mon Jul 8 15:53:32 UTC 2024


commit: https://git.busybox.net/busybox/commit/?id=eba9b33b4595fbb5f2a64148b1ff3daeab9b3813
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
parse_chown_usergroup_or_die                         115      94     -21

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libpwdgrp/uidgid_get.c | 6 +-----
 1 file changed, 1 insertion(+), 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
 	u->uid = u->gid = (gid_t)-1L;
 
 	/* Check if there is a group name */
-	group = strchr(user_group, '.'); /* deprecated? */
-	if (!group)
-		group = strchr(user_group, ':');
-	else
-		*group = ':'; /* replace '.' with ':' */
+	group = strchr(user_group, ':');
 
 	/* Parse "user[:[group]]" */
 	if (!group) { /* "user" */


More information about the busybox-cvs mailing list